摘要: 2011-12-12 05:04:42地址:http://acm.hdu.edu.cn/showproblem.php?pid=2009题意:中文题。代码:# include <stdio.h># include <math.h>int main (){ int m ; double n, sum ; while (~scanf ("%lf%d", &n, &m)) { sum = 0 ; while (m--) { sum += n ; n = sqrt(n) ; } ... 阅读全文
posted @ 2012-01-06 14:20 Seraph2012 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:55:58地址:http://acm.hdu.edu.cn/showproblem.php?pid=1095题意:a+b。。。代码(C编译):main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n\n",a+b);} 阅读全文
posted @ 2012-01-06 14:19 Seraph2012 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 05:01:03地址:http://acm.hdu.edu.cn/showproblem.php?pid=2008题意:中文题。代码:# include <stdio.h>int main (){ int n, a, b, c ; double num ; while (~scanf ("%d", &n) && n) { a = b = c = 0 ; while (n--){ scanf ("%lf", &num) ; num < 0 ? a ++ : num==0 ? b+... 阅读全文
posted @ 2012-01-06 14:19 Seraph2012 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:53:30地址:http://acm.hdu.edu.cn/showproblem.php?pid=1094题意:n个数字求和。mark:同1092一模一样。代码(C编译):main(n,a,b){while(~scanf("%d",&n)&&n){b=0;while(n--){scanf("%d",&a);b+=a;}printf("%d\n",b);}} 阅读全文
posted @ 2012-01-06 14:18 Seraph2012 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:49:22地址:http://acm.hdu.edu.cn/showproblem.php?pid=1092题意:每行第一个数是n,之后n个数。计算和。mark:没老老实实写,贡献了一个CE。代码(C编译):main(n,a,b){while(~scanf("%d",&n)&&n){b=0;while(n--){scanf("%d",&a);b+=a;}printf("%d\n",b);}} 阅读全文
posted @ 2012-01-06 14:17 Seraph2012 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:51:00地址:http://acm.hdu.edu.cn/showproblem.php?pid=1093题意:还是n个数的和,一共T组:mark:和1092只差一点点。代码(C编译):main(n,a,b){scanf("%d",&n);while(~scanf("%d",&n)&&n){b=0;while(n--){scanf("%d",&a);b+=a;}printf("%d\n",b);}} 阅读全文
posted @ 2012-01-06 14:17 Seraph2012 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:41:27地址:http://acm.hdu.edu.cn/showproblem.php?pid=1090题意:计算T组a+b。代码(C编译):main(a,b){scanf("%d",&a);while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);} 阅读全文
posted @ 2012-01-06 14:16 Seraph2012 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:44:32地址:http://acm.hdu.edu.cn/showproblem.php?pid=1091题意:计算a+b,直到0 0。没检查清楚,贡献出了第一个WA。代码(C编译):main(a,b){while(~scanf("%d%d",&a,&b)&&(a||b))printf("%d\n",a+b);} 阅读全文
posted @ 2012-01-06 14:16 Seraph2012 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 04:39:43地址:http://acm.hdu.edu.cn/showproblem.php?pid=1089题意:同1000代码(C编译):main(a,b){while(~scanf("%d%d",&a,&b))printf("%d\n",a+b);} 阅读全文
posted @ 2012-01-06 14:15 Seraph2012 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:48:21地址:http://acm.hdu.edu.cn/showproblem.php?pid=2005题意:中文题。代码:# include <stdio.h># define LEAP(y) ((y)%4==0&&(y)%100!=0||(y)%400==0)int main (){ int month[2][13] = { {0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}, {0, 0, 31, 60, 91, 121, 152, 182, 213, 24... 阅读全文
posted @ 2012-01-06 14:14 Seraph2012 阅读(146) 评论(0) 推荐(0) 编辑