A+B for Input-Output Practice (I) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,n; while(scanf("%d%d",&i,&j)==2)…… 题解列表 2019年05月24日 0 点赞 0 评论 514 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,j,n; scanf("%d",&n); for(i=2;i<…… 题解列表 2019年05月24日 0 点赞 0 评论 844 浏览 评分:0.0
数据结构-表达式求值 (C++代码) 摘要:解题思路:问题描述:输入由整型分量和操作符组成的中缀表达式,输出其后缀表达式和运算的结果。整型分量:十进制数。操作符:( , ) , + , - , * , / 。如输入3*(5-8/2)+7,输出 …… 题解列表 2019年05月24日 1 点赞 0 评论 2976 浏览 评分:7.7
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fact(double n);int main(){ double i; double n,sum=0; scanf("%…… 题解列表 2019年05月24日 0 点赞 0 评论 777 浏览 评分:0.0
C语言训练-求车速 (C语言代码)不暴力了、 摘要:解题思路:如题模拟,里程是只增不减的!!注意事项:无参考代码:#include<stdio.h>int main(){ int i,j,k,a; int wei[6]; int sum,sig; fo…… 题解列表 2019年05月24日 0 点赞 0 评论 1133 浏览 评分:4.0
C语言训练-亲密数 (C语言代码)暴力?算了,老老实实写吧! 摘要:解题思路:按题目模拟!注意事项:无参考代码:#include<stdio.h>int main(){ int i,j,k; int a,b; int sum1,sum2; sum1=sum2=0; f…… 题解列表 2019年05月24日 0 点赞 0 评论 557 浏览 评分:0.0
C语言训练-求素数问题 (C语言代码)咳咳。。又是求素数。。 摘要:解题思路:在判断一个数是不是素数的基础上,在套个循环就行了注意事项:无参考代码:#include<stdio.h>#include<math.h>int isprime(int x){ int i; …… 题解列表 2019年05月24日 0 点赞 0 评论 708 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 (C语言代码)。。还以为是大数乘法。。。longlong解决它 摘要:解题思路:longlong解决注意事项:longlong输出:%lld参考代码:#include<stdio.h>long long jiecheng(int n){ int i; long long…… 题解列表 2019年05月24日 0 点赞 0 评论 910 浏览 评分:0.0
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double score,n1=0,n2=0,n3=0; scanf("%lf",&score); while(…… 题解列表 2019年05月24日 0 点赞 0 评论 455 浏览 评分:0.0
C语言训练-百钱百鸡问题 (C语言代码)这题。。ε=(´ο`*)))唉。白给。。我想暴力一下了。。。 摘要:解题思路:暴力打印。注意事项:无参考代码:#include<stdio.h>int main(){ printf("cock=0,hen=25,chicken=75\ncock=4,hen=18,ch…… 题解列表 2019年05月24日 0 点赞 2 评论 1113 浏览 评分:0.0