新手必看,一正常,一函数递归 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n; long long cows[55] = {0}; // 初始化前三年的母牛…… 题解列表 2024年12月16日 3 点赞 0 评论 1741 浏览 评分:10.0
新手必看,俩for解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,i,j,h,l; scanf("%d",&n); int a[n][n]; for(i=0;…… 题解列表 2024年12月16日 0 点赞 0 评论 745 浏览 评分:0.0
c语言 30306:树的存储 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define MAX_N 10000// 邻接表节点结构体typedef struct Nod…… 题解列表 2024年12月15日 1 点赞 0 评论 532 浏览 评分:10.0
1044 : 三个字符串的排序 摘要:#include <stdio.h> #include <string.h> int main() { char a[1000],b[1000],c[1000]; …… 题解列表 2024年12月15日 1 点赞 0 评论 1194 浏览 评分:0.0
超级简单,用了循环和字符串函数, 摘要:解题思路:只要不是空格,就直接加,不用考虑字符是字母还是数字。注意事项:使用标记变量处理逗号问题。参考代码:#include <stdio.h>#include <string.h>int main(…… 题解列表 2024年12月15日 1 点赞 0 评论 526 浏览 评分:10.0
运用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 评论 1858 浏览 评分:10.0
大神老白1390///////// 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int gys(int a,int b){ if (a==b) { return a; } else …… 题解列表 2024年12月15日 0 点赞 0 评论 440 浏览 评分:0.0
使用函数易理解 摘要:解题思路:注意事项:由题可知大写变小写,加32即可,在注意下字符数组的输入输出参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){…… 题解列表 2024年12月15日 3 点赞 2 评论 855 浏览 评分:10.0
推断不重要或重复关系 摘要:解题思路:1. 在 main 函数中,首先定义了两个整数 n 和 m 用于存储关系的数量和节点的数量。2. 定义了一个整数数组 root ,初始时 root[i] = i ,表示每…… 题解列表 2024年12月15日 1 点赞 0 评论 471 浏览 评分:0.0
贝西的训练 摘要:解题思路:1. 在 main 函数开头,定义了整数变量 M (奶牛进山的总时间)、 T (路段数量)、 U (上坡时间)、 F (平路时间)、 D (下坡时间),并通过 scanf 函数从用…… 题解列表 2024年12月15日 0 点赞 0 评论 468 浏览 评分:0.0