A+B for Input-Output Practice (IV) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int n,m,sum; while(scanf("%d",&n)==1&&n>0) { sum=0; while…… 题解列表 2017年10月27日 0 点赞 0 评论 824 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:类比斐波那契数列,第四年后的每一年获得的羊的数量都是其三年前的羊的数量,即An-A(n-1)=A(n-3)。对前四年,因为第一年出生的母羊在第四年年初才会生第一只羊,所以其生的羊在第5年才计…… 题解列表 2017年10月27日 0 点赞 0 评论 825 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:分别取个十位的数字进行拼接,百位就是除以100,十位就是除以10,个位就是除以1注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,num…… 题解列表 2017年10月27日 0 点赞 0 评论 858 浏览 评分:0.0
上车人数 (C语言代码) 摘要:#include <stdio.h> int F(int); int main() { int a,n,m,x,sum[3],i,b; scanf("%d%d%d%d",&a,&n,&m…… 题解列表 2017年10月27日 0 点赞 0 评论 1056 浏览 评分:0.0
众数问题 (C语言代码) 摘要:#include <stdio.h> int main() { int nums[50000],i,n,o,maxcount=1,common; scanf("%d",&n); for…… 题解列表 2017年10月27日 0 点赞 0 评论 925 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:#include <stdio.h> #define p 3.1415 void main() { double r; int n; scanf("%d",…… 题解列表 2017年10月27日 2 点赞 2 评论 1834 浏览 评分:9.9
数列有序 (C语言代码) 摘要:#include <stdio.h> int main() { int n,m,nums[100],i; while (scanf("%d%d",&n,&m)!=EOF&&n!…… 题解列表 2017年10月27日 0 点赞 0 评论 1374 浏览 评分:0.0
数列问题 (C语言代码) 摘要:#include <stdio.h> int main() { int N,i; long a=3,b=4,c=5,sum; scanf("%d",&N); if (N…… 题解列表 2017年10月27日 3 点赞 0 评论 1282 浏览 评分:0.0
青年歌手大奖赛_评委会打分 (C语言代码) 摘要:#include <stdio.h> int main() { int n,nums[100],i,min,max,cheak1=0,cheak2=0; while (scanf("%d"…… 题解列表 2017年10月27日 0 点赞 0 评论 2432 浏览 评分:9.9
生日日数 (C语言代码) 摘要:#include <stdio.h> int main() { int yy, mm, dd; int year[12] = {31, 28, 31, 30, 31, 30, …… 题解列表 2017年10月27日 2 点赞 0 评论 1922 浏览 评分:9.9