超级简单,用了循环和字符串函数, 摘要:解题思路:只要不是空格,就直接加,不用考虑字符是字母还是数字。注意事项:使用标记变量处理逗号问题。参考代码:#include <stdio.h>#include <string.h>int main(…… 题解列表 2024年12月15日 1 点赞 0 评论 133 浏览 评分:10.0
c语言 30306:树的存储 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define MAX_N 10000// 邻接表节点结构体typedef struct Nod…… 题解列表 2024年12月15日 1 点赞 0 评论 177 浏览 评分:10.0
新手必看,一正常,一函数递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; long long cows[55] = {0}; // 初始化前三年的母牛…… 题解列表 2024年12月16日 2 点赞 0 评论 1010 浏览 评分:10.0
老头也能看懂的for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,a=0,b=0,c=0; for(;;){ scanf("%d",&n); i…… 题解列表 2024年12月16日 1 点赞 0 评论 355 浏览 评分: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 评论 580 浏览 评分:10.0
利用等比数列前n项和公式来解决问题 摘要:解题思路:利用等比数列前n项和公式注意事项:该等比数列的项数为n-1个项参考代码:#include <stdio.h>#include <math.h>int main(){ double ti…… 题解列表 2024年12月17日 1 点赞 0 评论 156 浏览 评分:10.0
2852配对碱基链 摘要:解题思路:注意事项:#n=include<string>是引用strlen函数的头文件参考代码:#include<stdio.h>#include<string.h>int main(){ ch…… 题解列表 2024年12月17日 3 点赞 0 评论 163 浏览 评分:10.0
约瑟夫环模拟法 摘要:解题思路:利用约瑟夫环解决问题注意事项:要求剩余人数剩余1时,才输出参考代码:#include<stdio.h>int main(){ int n,i,k,c; scanf("%d",&n); int…… 题解列表 2024年12月18日 1 点赞 0 评论 390 浏览 评分:10.0
编写题解 1093: 字符逆序(不多解释,一看就明白) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]="0", b[100]="0"; …… 题解列表 2024年12月18日 2 点赞 0 评论 459 浏览 评分:10.0
编写题解 3209: 蓝桥杯2024年第十五届省赛真题-好数(简单易懂的c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, i, x, num, sum = 0; scanf("%d", &num); f…… 题解列表 2024年12月18日 18 点赞 0 评论 1476 浏览 评分:10.0