蓝桥杯2017年第八届真题-包子凑数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <cstdio>#define MAXN 10010 //最多凑出的包子个…… 题解列表 2019年01月19日 4 点赞 0 评论 1127 浏览 评分:8.0
优质题解 C/C++两种解法 求 寻找奇整数 (C/C++语言代码) 摘要:解题思路:第一步: 将3,7,5,13,25,45,78,23,8,33,9,19,28,41,50存入数组a中。第二步: 数组的长度: 数组的总字节数/数组数据类型字节,即sizeof(a)/siz…… 题解列表 2019年01月19日 2 点赞 0 评论 1768 浏览 评分:4.7
C++ Algorithm算法 之 查找最小的k个元素 (C/C++语言代码) 摘要:解题思路:本题思路非常简单。第一步: 把n个数导入到vector容器中。第二步: 对输入的n个数进行排序。排序:sort(vec.begin(),vec.end());sort(vec.rbegin(…… 题解列表 2019年01月18日 1 点赞 0 评论 1066 浏览 评分:9.9
新手解题法——————课后习题5.8 (C语言代码) 摘要:解题思路:注意事项:注意计算正确参考代码:#include <stdio.h>int main(){ int n,i,a,b,c,d,e; scanf("%d",&n); b=n-1…… 题解列表 2019年01月18日 0 点赞 0 评论 918 浏览 评分:0.0
字符串的输入输出处理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char s[200][1001]; int i,n,index; scanf("%d\n", &n); i…… 题解列表 2019年01月18日 0 点赞 0 评论 788 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>double fact(int n){ double ans = 1.0; int i; for(i = 2; i <= n; i+…… 题解列表 2019年01月18日 0 点赞 0 评论 513 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int score; int count1 = 0,count2 = 0,count3 = 0; while…… 题解列表 2019年01月18日 0 点赞 0 评论 1208 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int map[6][6]; int i,j,n; int r,c,ma…… 题解列表 2019年01月18日 0 点赞 0 评论 668 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void ctof(int c){ int i; for(i = c; i <= 150; i += 5) printf("c=%…… 题解列表 2019年01月18日 0 点赞 0 评论 794 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int x; double ans; scanf("%d", &x); …… 题解列表 2019年01月18日 0 点赞 0 评论 587 浏览 评分:0.0