实际上并没有那么难,一小步解决最大难点 摘要:解题思路:1、每次求完平均值后把那两个数(就是那m个数中的最大和最小值)给定位好。2、可能项数n和m的商不是整数(即n/m不为整数),我会在代码中标注出解法。3、总的来讲还是建立大数组求每段的平均值注…… 题解列表 2019年05月03日 0 点赞 0 评论 508 浏览 评分:0.0
[编程入门]报数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码: 我的手机 2019/5/3 星期五 14:33:23 #include<stdio.h> int main() { int i,j,k=0,n;…… 题解列表 2019年05月03日 0 点赞 0 评论 676 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() {struct Date {int year; int month; …… 题解列表 2019年05月03日 0 点赞 0 评论 568 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> #define P(a,b,c) (a+b+c)/2 #define S(p,a,b,c) s…… 题解列表 2019年05月03日 0 点赞 0 评论 614 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define R(a,b) a%b int main() { int a,b,rem; scanf("…… 题解列表 2019年05月03日 0 点赞 0 评论 687 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define SWAP(a,b) {int t;t=a;a=b;b=t;} int main() { int a…… 题解列表 2019年05月03日 0 点赞 0 评论 524 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char ch[100]; gets(ch)…… 题解列表 2019年05月03日 0 点赞 0 评论 603 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { void str(char s[]); ch…… 题解列表 2019年05月03日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]二维数组的转置 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[3][3],b[3][3],i,j; for(i=0;i<3;i++…… 题解列表 2019年05月03日 0 点赞 0 评论 425 浏览 评分:0.0
[编程入门]自定义函数处理素数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int isprime(int n); int m; scanf("%…… 题解列表 2019年05月03日 0 点赞 0 评论 584 浏览 评分:0.0