用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N, i, j; scanf("%d", &N); for(j = 2; j <= N…… 题解列表 2019年05月05日 0 点赞 0 评论 1119 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 (C语言代码) 摘要:参考代码:#include<stdio.h>int main(void){ int sum=0,n,i; scanf("%d", &n); for (i = 1; i <= n…… 题解列表 2019年05月05日 1 点赞 0 评论 1081 浏览 评分:0.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int a[150]={0,2}; //第一项为 2 int main() { int n,m; for(int i…… 题解列表 2019年05月05日 0 点赞 0 评论 1247 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define SQRT(S,a,b,c) area=sqrt(S*(S-a)*(S-b)*(S-c))…… 题解列表 2019年05月05日 0 点赞 0 评论 1855 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:1/2与1.0/2的区别参考代码:#include<stdio.h>#include<math.h>int main(){ int n; double y; scanf("%d",…… 题解列表 2019年05月05日 0 点赞 0 评论 785 浏览 评分:0.0
P1018 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[100],cnt=0,n,m; long long sum=1; scanf("…… 题解列表 2019年05月05日 0 点赞 0 评论 1955 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) ((y%4==0)&&(y%100!=0)||(y%400==0))int main(){ i…… 题解列表 2019年05月05日 0 点赞 0 评论 979 浏览 评分:0.0
P1019 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[10050],b[10050];…… 题解列表 2019年05月05日 0 点赞 0 评论 1560 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:注意看题目输出要求,c的的值都是间隔5的,所以c=c+5参考代码:#include<stdio.h>int ctof(int c){ int f; f=32+c*9/5; retu…… 题解列表 2019年05月05日 0 点赞 0 评论 1085 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[6][6],n,i,j,max,k,l; scanf("%d",&n); for(i=0;i<n;i…… 题解列表 2019年05月05日 0 点赞 0 评论 1347 浏览 评分:0.0