用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,N; scanf("%d",&N); c=0; for (a=2;a<N;a++) { b…… 题解列表 2017年12月09日 0 点赞 0 评论 922 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:用m记录母牛,c[3]分别记录1到3岁的母牛。注意事项:竟然跟舍友不谋而合。比较好理解,当然跟大佬的代码效率上还是有区别。参考代码:#include<stdio.h>#include<str…… 题解列表 2017年12月09日 0 点赞 0 评论 931 浏览 评分: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 评论 1059 浏览 评分: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 评论 1089 浏览 评分: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 评论 950 浏览 评分:0.0
第几天 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct Data{ int year; int month; int day;};int ComputerDays(struct…… 题解列表 2017年12月09日 0 点赞 0 评论 1319 浏览 评分: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 评论 1071 浏览 评分: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 评论 1472 浏览 评分: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 评论 1063 浏览 评分: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 评论 930 浏览 评分:0.0