幸运数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int M=500000;int a[M],count;void Lucky_nu…… 题解列表 2017年11月01日 1 点赞 0 评论 3506 浏览 评分:7.3
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 哎。。 */ #include<stdio.h> #define N 100 struct student { char num[10]; …… 题解列表 2017年10月31日 0 点赞 0 评论 1695 浏览 评分:9.9
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:1.先建立一个循环m<=i<=n,依次判断在这一区间的每个数是否是素数,在循环内部调用isprime(i)函数;2.在int isprime(int x)函数中,我们要判断x是否是素数:设立…… 题解列表 2017年10月31日 3 点赞 1 评论 985 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* t */ #include<stdio.h> #define N 100 struct student { char num[10]; …… 题解列表 2017年10月31日 12 点赞 5 评论 2320 浏览 评分:9.5
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:1.按照题目要求,要先计算10个数的和,在计算平均值:我们设立一个数组num[10],然后利用for循环依次将十个数赋到数组中,并用sum求十个数的和;2.退出循环再计算平均值;3.再次利用…… 题解列表 2017年10月31日 1 点赞 0 评论 1002 浏览 评分:0.0
小O的乘积 (C++代码) 摘要:解题思路:只要注意几个情况就能AC了注意事项:参考代码:#include<cstdio>#include <algorithm>using namespace std;int main(){ i…… 题解列表 2017年10月31日 0 点赞 0 评论 1019 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; a=1; b=1; c=a+b; scanf("c=%d",c); }…… 题解列表 2017年10月31日 0 点赞 0 评论 723 浏览 评分:0.0
买不到的数目 (C语言代码) 摘要:解题思路:一个公式,两个数最大不能组合的数为两个数之积减去两个数之和。注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d…… 题解列表 2017年10月31日 25 点赞 20 评论 3413 浏览 评分:8.3
【计算球体积】 (C语言代码) 摘要:解题思路:看题目,想代码,写代码。注意事项: 函数类型,代码。参考代码:#include<stdio.h>#define PI 3.1415int main(){ float r,v; scanf("…… 题解列表 2017年10月30日 0 点赞 1 评论 1942 浏览 评分:6.0
简单的a+b (C语言代码) 摘要:解题思路:看题目,想类型,写代码。注意事项:函数的类型,符号。参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); print…… 题解列表 2017年10月30日 0 点赞 0 评论 875 浏览 评分:0.0