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 评论 701 浏览 评分: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 评论 1295 浏览 评分: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 评论 537 浏览 评分: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 评论 831 浏览 评分:0.0
新手解题法——————课后习题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 评论 950 浏览 评分:0.0
C++ Algorithm算法 之 查找最小的k个元素 (C/C++语言代码) 摘要:解题思路:本题思路非常简单。第一步: 把n个数导入到vector容器中。第二步: 对输入的n个数进行排序。排序:sort(vec.begin(),vec.end());sort(vec.rbegin(…… 题解列表 2019年01月18日 1 点赞 0 评论 1088 浏览 评分:9.9
优质题解 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 评论 1805 浏览 评分:4.7
蓝桥杯2017年第八届真题-包子凑数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <cstdio>#define MAXN 10010 //最多凑出的包子个…… 题解列表 2019年01月19日 4 点赞 0 评论 1155 浏览 评分:8.0
Hello, world! (C++代码) 摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){ int a; w…… 题解列表 2019年01月19日 0 点赞 0 评论 773 浏览 评分:0.0
用筛法求之N内的素数。 (C++代码) 摘要:解题思路:利用标志来寻找其是否有其他因子注意事项:1不是素数参考代码:#include<iostream>using namespace std;int main(){ int m,n,i,j;…… 题解列表 2019年01月19日 0 点赞 0 评论 690 浏览 评分:0.0