矩阵转置 (C语言代码) 摘要:#include <stdio.h> int main() { int s[100][100],N,i,o; while (scanf("%d",&N)!=EOF) {for (i…… 题解列表 2017年10月26日 0 点赞 0 评论 1123 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.8 (C语言代码) 摘要:解题思路:常规注意事项:无参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x<=100000) { prin…… 题解列表 2017年10月26日 0 点赞 0 评论 937 浏览 评分:0.0
A+B for Input-Output Practice (I) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int a,b; while(scanf("%d %d",&a,&b)==2) printf("%d",a+b); re…… 题解列表 2017年10月27日 0 点赞 0 评论 695 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 问题 1028: C语言程序设计教程(第三版)课后习题8.2 时间限制: 1Sec 内存限制: 128MB 提交: 546 解决: 308 题目描述 求…… 题解列表 2017年10月27日 1 点赞 0 评论 1439 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:/* 判断素数 */ #include<stdio.h> #include<math.h> int prime(int n) { int j,k; …… 题解列表 2017年10月27日 1 点赞 0 评论 921 浏览 评分:0.0
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 评论 821 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:类比斐波那契数列,第四年后的每一年获得的羊的数量都是其三年前的羊的数量,即An-A(n-1)=A(n-3)。对前四年,因为第一年出生的母羊在第四年年初才会生第一只羊,所以其生的羊在第5年才计…… 题解列表 2017年10月27日 0 点赞 0 评论 822 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:分别取个十位的数字进行拼接,百位就是除以100,十位就是除以10,个位就是除以1注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,num…… 题解列表 2017年10月27日 0 点赞 0 评论 855 浏览 评分: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 评论 1052 浏览 评分: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