上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
摘要: #include #include int cmp(const void *a,const void *b){ return (*(int *)a-*(int *)b);}int main(){ int n,arr[10001],i; scanf("%d",&n); for(... 阅读全文
posted @ 2015-06-14 11:05 Gabyler 阅读(374) 评论(0) 推荐(0) 编辑
摘要: #include #include #include#define pi acos(-1)struct point{ double x,y;}first,last,now;double dist(struct point *a,struct point *b){ return sqrt(... 阅读全文
posted @ 2015-06-13 21:24 Gabyler 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int n,graTable[1000],tim,i; scanf("%d",&n); while(n--) { int sum=0,cout=0; float aver; ... 阅读全文
posted @ 2015-06-13 13:05 Gabyler 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include #include #includeint main(){ char str[10]; int n,begin=0,end=11; while(scanf("%d",&n) && n)//以0结束的可以由这种格式写 { getchar();//读... 阅读全文
posted @ 2015-06-13 12:04 Gabyler 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 收获:一开始以为是100万的所有数字,题目要求是只要偶数,也可以分析出来,如果是给一个奇数,当我们给他大于等于3的奇数(这个数加有可能不是质数,但至少满足是奇数,至于是不是质数还要自己判断),剪出来一定是个偶数,无论如何都给不出答案,但是,题目要求输入偶数,偶数可以=奇数+奇数因此一定会出现:203... 阅读全文
posted @ 2015-06-12 20:04 Gabyler 阅读(585) 评论(0) 推荐(0) 编辑
摘要: #include#include#includelong long int a[100010];int cmp(const void *a,const void *b){ return (*(long long *)b-*(long long *)a);}int main(){ int ... 阅读全文
posted @ 2015-06-11 23:11 Gabyler 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int i,sum,sumOfH,sumOfd,tmp1,tmp2,tmp3; for(i=2992;i<10000;i++) { sum=0; sumOfd=0; sumOfH=... 阅读全文
posted @ 2015-06-11 17:58 Gabyler 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ char arr[11]; int index,sum=0,i; scanf("%s",arr); for(i=0;i<10;i++) { if(arr[i]=='?') { ... 阅读全文
posted @ 2015-06-11 17:01 Gabyler 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ int m,n,k,i,j,flag=0; double arr[10000]; scanf("%d %d %d",&m,&n,&k); for(i=0;ii-m;j--)//从前往后加执行几次,就让j>i-几 ... 阅读全文
posted @ 2015-06-10 22:52 Gabyler 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(){ char keys[27]; char tmp; scanf("%s",keys); getchar(); while((tmp = getchar()) != '\n') { if(tmp... 阅读全文
posted @ 2015-06-10 19:39 Gabyler 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页