C++ Algorithm算法 之 查找最小的k个元素 (C/C++语言代码) 摘要:解题思路:本题思路非常简单。第一步: 把n个数导入到vector容器中。第二步: 对输入的n个数进行排序。排序:sort(vec.begin(),vec.end());sort(vec.rbegin(…… 题解列表 2019年01月18日 1 点赞 0 评论 1065 浏览 评分: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 评论 915 浏览 评分: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 评论 785 浏览 评分: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 评论 512 浏览 评分: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 评论 1204 浏览 评分: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 评论 664 浏览 评分: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 评论 788 浏览 评分: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 评论 584 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级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 评论 1025 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a[10]; int pos = 0,min = 0x7ffff…… 题解列表 2019年01月18日 0 点赞 0 评论 878 浏览 评分:0.0