试了下另一个选项 摘要:解题思路:题目也说了,但好奇试了下,输出no,不行。注意事项:参考代码:#include<studio.h>int main(){ printf("yes"); return…… 题解列表 2024年11月12日 0 点赞 0 评论 406 浏览 评分:9.9
字符串最大跨距(指针方法) 解题思路:使用strstr函数反复查找寻找到字符串最后出现的位置,最后利用指针相减的特性求出跨距。注意事项:注意录入数据时的格式;注意strstr查找不到字符串时会返回空指针(NULL);重复查找时注意把上次查找到的位置排除。参考代码:#include#include 题解列表 2024年11月12日 0 点赞 0 评论 587 浏览 评分:9.9 [编程入门]结构体之成绩统计2 ```c#includestructa{chara[30];charb[30];//结构体intc;intd;inte;};voidqw(structa*p,intn,int*w,int*e,int*r){for(intq=0;q 题解列表 2024年11月12日 1 点赞 0 评论 737 浏览 评分:9.9 [STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a; …… 题解列表 2024年11月12日 0 点赞 0 评论 445 浏览 评分:0.0 注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 416 浏览 评分:0.0 3岁都能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int k; scanf("%d", &k); if (k == 1 || k =…… 题解列表 2024年11月11日 0 点赞 0 评论 797 浏览 评分:9.0 容易写到的直接解法pow()解释,代码逻辑非常简单 解题思路:直接pow()注意事项:longlongint的最大值:9223372036854775807double最大值:1.8乘以10的308次方2的一百次方等于1267650600228229401496703205376题目输入n范围是n<=100;所以用double类型才不会数据溢出, 题解列表 2024年11月11日 0 点赞 0 评论 579 浏览 评分:0.0 可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 386 浏览 评分:0.0 [STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 435 浏览 评分:0.0 最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 404 浏览 评分:0.0 « 12...337338339340341342343...59115912 »
[编程入门]结构体之成绩统计2 ```c#includestructa{chara[30];charb[30];//结构体intc;intd;inte;};voidqw(structa*p,intn,int*w,int*e,int*r){for(intq=0;q 题解列表 2024年11月12日 1 点赞 0 评论 737 浏览 评分:9.9 [STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a; …… 题解列表 2024年11月12日 0 点赞 0 评论 445 浏览 评分:0.0 注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 416 浏览 评分:0.0 3岁都能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int k; scanf("%d", &k); if (k == 1 || k =…… 题解列表 2024年11月11日 0 点赞 0 评论 797 浏览 评分:9.0 容易写到的直接解法pow()解释,代码逻辑非常简单 解题思路:直接pow()注意事项:longlongint的最大值:9223372036854775807double最大值:1.8乘以10的308次方2的一百次方等于1267650600228229401496703205376题目输入n范围是n<=100;所以用double类型才不会数据溢出, 题解列表 2024年11月11日 0 点赞 0 评论 579 浏览 评分:0.0 可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 386 浏览 评分:0.0 [STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 435 浏览 评分:0.0 最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 404 浏览 评分:0.0 « 12...337338339340341342343...59115912 »
[STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a; …… 题解列表 2024年11月12日 0 点赞 0 评论 445 浏览 评分:0.0
注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 416 浏览 评分:0.0
3岁都能看懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int k; scanf("%d", &k); if (k == 1 || k =…… 题解列表 2024年11月11日 0 点赞 0 评论 797 浏览 评分:9.0
容易写到的直接解法pow()解释,代码逻辑非常简单 解题思路:直接pow()注意事项:longlongint的最大值:9223372036854775807double最大值:1.8乘以10的308次方2的一百次方等于1267650600228229401496703205376题目输入n范围是n<=100;所以用double类型才不会数据溢出, 题解列表 2024年11月11日 0 点赞 0 评论 579 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 386 浏览 评分:0.0
[STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 435 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 404 浏览 评分:0.0