[编程入门]自定义函数之字符串拷贝 (C语言代码) 摘要:解题思路:注意事项:第一个scanf一定一定加\n!否则gets会把样例的回车当做字符开头;strcpy可以从字符串的中间复制;定义n个字符字符串要char s[n+1]参考代码:#include<s…… 题解列表 2019年05月12日 0 点赞 0 评论 747 浏览 评分:0.0
蓝桥杯2014年第五届真题-Log大侠 (C语言代码)线段树 摘要:解题思路: 区间更新,区间查询------》线段树 普通方法能过,但是原题的数据量描述如下: &n 题解列表 2019年05月12日 11 点赞 1 评论 1117 浏览 评分:6.0
蓝桥杯2013年第四届真题-核桃的数量 (C语言代码) 摘要:参考代码:#include<stdio.h>int A(int m, int n) //求最小公倍数的函数{ int a=m, b=n; int r; r = m % n;…… 题解列表 2019年05月12日 0 点赞 0 评论 1119 浏览 评分:7.3
[编程入门]结构体之成绩记录 (C语言代码)水经验!! 摘要:解题思路:随便你!!注意事项:无!参考代码:#include<stdio.h>struct stu{ char num[10]; char name[20]; int a; int b; int c;…… 题解列表 2019年05月12日 0 点赞 0 评论 879 浏览 评分:0.0
字符逆序 (C语言代码)水经验!! 摘要:解题思路:随便你注意事项:无参考代码:#include<stdio.h>#include<string.h>#define N 101int main(){ char a[N]; int len,i;…… 题解列表 2019年05月12日 0 点赞 0 评论 960 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)水经验!!! 摘要:解题思路:随便你注意事项:无!参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; int i,m,t; for(i=0;i<10;…… 题解列表 2019年05月12日 0 点赞 0 评论 694 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码)水经验!! 摘要:解题思路:随便你注意事项:无参考代码:#include<stdio.h>int main(){ int m,n; int m1,n1; int b; scanf("%d%d",&m,&n); m1=m…… 题解列表 2019年05月12日 0 点赞 0 评论 761 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码)水经验的路过!! 摘要:解题思路:随便你!注意事项:无参考代码:#include<stdio.h>int main(){ int n; int i,j; int sum=0; scanf("%d",&n); for(i=1,…… 题解列表 2019年05月12日 0 点赞 0 评论 886 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)水啊,水啊,水经验啊! 摘要:解题思路:随便你注意事项:无参考代码:#include<stdio.h>int main(){ int a[10]; int k=0,i,sum=0; float avg; for(i=0;i<10;…… 题解列表 2019年05月12日 0 点赞 0 评论 587 浏览 评分:0.0
[编程入门]数组插入处理 (C语言代码)水啊,水经验!! 摘要:解题思路:随便你注意事项:无参考代码:#include<stdio.h>int main(){ int a[10]; int x,i,t; for(i=0;i<9;i++) scanf("%d",&…… 题解列表 2019年05月12日 0 点赞 0 评论 702 浏览 评分:0.0