运用if和else语句实现输出三个数的最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); max=…… 题解列表 2024年12月15日 9 点赞 0 评论 1562 浏览 评分:10.0
超级简单,用了循环和字符串函数, 摘要:解题思路:只要不是空格,就直接加,不用考虑字符是字母还是数字。注意事项:使用标记变量处理逗号问题。参考代码:#include <stdio.h>#include <string.h>int main(…… 题解列表 2024年12月15日 1 点赞 0 评论 241 浏览 评分:10.0
c语言 30306:树的存储 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define MAX_N 10000// 邻接表节点结构体typedef struct Nod…… 题解列表 2024年12月15日 1 点赞 0 评论 324 浏览 评分:10.0
新手必看,一正常,一函数递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; long long cows[55] = {0}; // 初始化前三年的母牛…… 题解列表 2024年12月16日 2 点赞 0 评论 1438 浏览 评分:10.0
老头也能看懂的for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=0,b=0,c=0; for(;;){ scanf("%d",&n); i…… 题解列表 2024年12月16日 2 点赞 0 评论 707 浏览 评分:10.0
递归7行解决猴子吃桃 摘要:参考代码:n=eval(input())def peach(m): if m==n: return 1 else: return 2*(peach(m+1)+1…… 题解列表 2024年12月16日 2 点赞 0 评论 815 浏览 评分:10.0
利用等比数列前n项和公式来解决问题 摘要:解题思路:利用等比数列前n项和公式注意事项:该等比数列的项数为n-1个项参考代码:#include <stdio.h>#include <math.h>int main(){ double ti…… 题解列表 2024年12月17日 1 点赞 0 评论 298 浏览 评分:10.0
2852配对碱基链 摘要:解题思路:注意事项:#n=include<string>是引用strlen函数的头文件参考代码:#include<stdio.h>#include<string.h>int main(){ ch…… 题解列表 2024年12月17日 3 点赞 0 评论 298 浏览 评分:10.0
约瑟夫环模拟法 摘要:解题思路:利用约瑟夫环解决问题注意事项:要求剩余人数剩余1时,才输出参考代码:#include<stdio.h>int main(){ int n,i,k,c; scanf("%d",&n); int…… 题解列表 2024年12月18日 1 点赞 0 评论 568 浏览 评分:10.0
编写题解 1093: 字符逆序(不多解释,一看就明白) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]="0", b[100]="0"; …… 题解列表 2024年12月18日 3 点赞 0 评论 645 浏览 评分:10.0