2015年4月20日

杭电2004(万一实现了呢)

摘要: #includeint main(){int t; while(scanf("%d",&t)!=EOF) {while(1) { if(t>100 || t=90) {printf("A\n"); break; } else if(t>=80) {printf("B\n"); br... 阅读全文

posted @ 2015-04-20 21:51 Randy77 阅读(218) 评论(0) 推荐(0) 编辑

杭电2001(梦想还是要有的)

摘要: #include#includeint main(){ double x1,y1,x2,y2,l,a; while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2)!=EOF) { a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2); ... 阅读全文

posted @ 2015-04-20 21:12 Randy77 阅读(155) 评论(0) 推荐(0) 编辑

杭电2002(我们没有什么不同)

摘要: #include#include#define PI 3.1415927int main(){ double v,r; while(scanf("%lf",&r)!=EOF) { v=r*r*r*PI*4/3; printf("%.3lf\n",v); } } 阅读全文

posted @ 2015-04-20 21:11 Randy77 阅读(134) 评论(0) 推荐(0) 编辑

杭电1093(不会做)

摘要: Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Ea... 阅读全文

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

杭电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 阅读(133) 评论(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) 编辑

导航