2015年4月20日

杭电1092(坚持着,总有一天,你会站在最亮的地方)

摘要: Problem DescriptionYour task is to Calculate the sum of some integers.InputInput contains multiple test cases. Each test case contains a integer N, an... 阅读全文

posted @ 2015-04-20 19:37 Randy77 阅读(334) 评论(0) 推荐(0) 编辑

杭电1091(今天的伤痕会是你明天的坚强)

摘要: Problem DescriptionYour task is to Calculate a + b.InputInput contains multiple test cases. Each test case contains a pair of integers a and b, one pa... 阅读全文

posted @ 2015-04-20 18:36 Randy77 阅读(256) 评论(0) 推荐(0) 编辑

杭电1090(今天的汗水会是你明天的成长)

摘要: Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of ... 阅读全文

posted @ 2015-04-20 16:03 Randy77 阅读(194) 评论(0) 推荐(0) 编辑

杭电1089(我为自己代言)

摘要: Problem DescriptionYour task is to Calculate a + b.Too easy?! Of course! I specially designed the problem for acm beginners.You must have found that s... 阅读全文

posted @ 2015-04-20 15:45 Randy77 阅读(317) 评论(0) 推荐(0) 编辑

杭电1001

摘要: Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ... 阅读全文

posted @ 2015-04-20 15:15 Randy77 阅读(374) 评论(0) 推荐(0) 编辑

杭电1001(人生路自己走)

摘要: Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ... 阅读全文

posted @ 2015-04-20 15:15 Randy77 阅读(133) 评论(0) 推荐(0) 编辑

2015年4月15日

冒泡法为何又错了,运行起来不对求解

摘要: #includeint main(){ int a[50],i,j,t,n; //scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); printf("\n input number of date:"); scanf("%d",&n); printf("input %d munb... 阅读全文

posted @ 2015-04-15 20:14 Randy77 阅读(159) 评论(0) 推荐(0) 编辑

屡败屡战,还是赢不了。求大神告诉我哪里错了

摘要: 求大神告诉我哪里错了奇偶数分离时间限制:3000ms | 内存限制:65535KB难度:1描述有一个整型偶数n(2#includeint main(){int n,i=1;scanf("%d",&n);for(i=1;i<=n;){printf("%d ",i);i=i+2;}printf("\n"... 阅读全文

posted @ 2015-04-15 19:33 Randy77 阅读(117) 评论(0) 推荐(0) 编辑

2015年4月14日

2小时牛刀小试

摘要: No.1#include "stdio.h"void main(){ int i,t; double sum; for(i=0;iint main(){int i=1,s=1;for(;iint main(){int x,y,z;int i=53/10,j=53/7;for(x=0;x#includ... 阅读全文

posted @ 2015-04-14 17:59 Randy77 阅读(138) 评论(0) 推荐(0) 编辑

2015年4月9日

牛刀小试

摘要: 刚开始学c,还不了解,花了两个多真是写了书上的五个简单题,慢慢来吗!不积小流,无以成江河#include "stdio.h"void main(){ int c,n; scanf("%d",&n); c=n%2; if(c=0) printf("n is an even"); else prin... 阅读全文

posted @ 2015-04-09 18:48 Randy77 阅读(130) 评论(0) 推荐(0) 编辑

导航