母牛的故事 (C语言代码) 摘要:解题思路:用m记录母牛,c[3]分别记录1到3岁的母牛。注意事项:竟然跟舍友不谋而合。比较好理解,当然跟大佬的代码效率上还是有区别。参考代码:#include<stdio.h>#include<str…… 题解列表 2017年12月09日 0 点赞 0 评论 701 浏览 评分:0.0
程序员的表白 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,i,k; while(scanf("%d",&a)!=EOF) { for(i=1;i<=a+1;…… 题解列表 2017年12月09日 0 点赞 0 评论 933 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:注意事项:一定要细心!参考代码:#include <stdio.h>void test1(char arr1[],char arr2[]);int main(){ char ch1[40]=…… 题解列表 2017年12月09日 0 点赞 0 评论 795 浏览 评分:0.0
单词个数统计 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char c[1000]; gets(c); int i,count=1; …… 题解列表 2017年12月09日 0 点赞 0 评论 795 浏览 评分:0.0
第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct Data{ int year; int month; int day;};int ComputerDays(struct…… 题解列表 2017年12月09日 0 点赞 0 评论 1172 浏览 评分:0.0
班级人数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float p,q; int i,cheak; while (scanf("%f%f",&p,&q)!=EOF…… 题解列表 2017年12月09日 0 点赞 0 评论 957 浏览 评分:0.0
孤独的骑士 (C语言代码) 摘要:解题思路:分情况讨论注意事项:参考代码:#include <stdio.h>int main(void){ int i, n, x, y, count; char c; scanf("%d", &n)…… 题解列表 2017年12月09日 0 点赞 0 评论 1225 浏览 评分:9.9
勾股数 (C语言代码) 摘要:#include <stdio.h> int main() { int i,j,k; for(i=3;i<=1000;i++) for(j=i;j<=1000;j++) fo…… 题解列表 2017年12月09日 0 点赞 0 评论 927 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:#include <stdio.h>int fun(){ static int x=2; x=x*10+2; return x;}int main(){ int n,a,c=0; scanf…… 题解列表 2017年12月09日 0 点赞 0 评论 724 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,i,n,s,j,m; if(scanf("%d",&x)==1) { for(i=0;i<x;i+…… 题解列表 2017年12月09日 0 点赞 0 评论 609 浏览 评分:0.0