P1001 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;const int M=10000;int a[M]={…… 题解列表 2017年09月20日 3 点赞 1 评论 933 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:思路很简单,就是判断它是不是素数,如果是,就加进去,如果不是就i++。注意事项:值得注意的是有用例是从1开始的,所以要在isprime函数里加一个判断,如果是1就return 0;参考代码:…… 题解列表 2017年09月20日 0 点赞 0 评论 899 浏览 评分:9.5
妹子杀手的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(1) { scanf("%d%d",&a,&b); if(a==0&&…… 题解列表 2017年09月20日 1 点赞 0 评论 1593 浏览 评分:4.6
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a, b; …… 题解列表 2017年09月20日 0 点赞 0 评论 1024 浏览 评分:0.0
程序员的表白 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,i,j,m; while(scanf("%d",&a)!=EOF) { for(j=0;j<a;…… 题解列表 2017年09月20日 0 点赞 0 评论 904 浏览 评分:9.9
大神老白 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int m[50]; int a,i,sum; while(scanf("%…… 题解列表 2017年09月20日 0 点赞 0 评论 939 浏览 评分:6.0
字符串的输入输出处理 (C语言代码) 摘要:#include<stdio.h>#include<string.h>int main(){ int i,l,n; char str[1001]; scanf("%d",&n); // fflush…… 题解列表 2017年09月21日 0 点赞 0 评论 1268 浏览 评分:9.9
A+B for Input-Output Practice (IV) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n,i,j=0,sum[100]={0},temp; scanf("%d",&n); while…… 题解列表 2017年09月21日 0 点赞 0 评论 699 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:定义一个整形数组 整形指针数组 把数组元素的地址分别赋给整形指针数组注意事项:参考代码:#include<stdio.h>#define N 5int main(void){ in…… 题解列表 2017年09月21日 0 点赞 0 评论 787 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:利用字符输入函数ch=getchar()接收字符收入,套入循环则就得到输入的一个字符串,当while((ch=getchar())!='\n')时就连续接收字符构成字符串,并…… 题解列表 2017年09月21日 8 点赞 3 评论 1531 浏览 评分:0.0