上一页 1 ··· 47 48 49 50 51
摘要: 2011-12-12 03:53:00地址:http://acm.hdu.edu.cn/showproblem.php?pid=2006题意:中文题代码:# include <stdio.h>int main (){ int n, num, mul ; while (~scanf ("%d", &n)) { mul = 1 ; while (n--) { scanf ("%d", &num) ; if(num&1) mul*=num ; } printf ("%d... 阅读全文
posted @ 2012-01-06 14:14 Seraph2012 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:41:00地址:http://acm.hdu.edu.cn/showproblem.php?pid=2004题意:中文。代码:# include <stdio.h>int main (){ int num ; char tab[] = "EEEEEEDCBAA" ; while (~scanf ("%d", &num)) { if (num < 0 || num > 100) puts ("Score is error!") ; else printf ("%c\n 阅读全文
posted @ 2012-01-06 14:13 Seraph2012 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:35:42地址:http://acm.hdu.edu.cn/showproblem.php?pid=2002题意:中文题。思路:球体体积公式:V=4*Pi*r*r*r/3.0代码:# include <stdio.h>#define PI 3.1415927int main (){ double r ; while (~scanf ("%lf", &r)) printf ("%.3lf\n", 4*PI*r*r*r/3.0) ; return 0 ;} 阅读全文
posted @ 2012-01-06 14:12 Seraph2012 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:38:15地址:http://acm.hdu.edu.cn/showproblem.php?pid=2003题意:中文题。代码:# include <stdio.h>int main (){ double a ; while (~scanf ("%lf", &a)) printf ("%.2lf\n", a>0?a:-a) ; return 0 ;} 阅读全文
posted @ 2012-01-06 14:12 Seraph2012 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:30:57地址:http://acm.hdu.edu.cn/showproblem.php?pid=2001题意:中文题。代码:# include <stdio.h># include <math.h>int main (){ double x1, y1, x2, y2 ; while (~scanf ("%lf%lf%lf%lf", &x1, &y1, &x2, &y2)) printf ("%.2lf\n", sqrt ((x1-x2)*(x1-x2) + (y1-y 阅读全文
posted @ 2012-01-06 14:11 Seraph2012 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:27:22地址:http://acm.hdu.edu.cn/showproblem.php?pid=1001题意:给出多组n,输出1+2+3...n的结果,并跟随一个空白行。代码:# include <stdio.h>int main (){ unsigned int n ; while (~scanf ("%d", &n)) printf ("%d\n\n", n*(n+1)/2) ; return 0 ;} 阅读全文
posted @ 2012-01-06 14:10 Seraph2012 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 2011-12-12 03:08:00链接:http://acm.hdu.edu.cn/showproblem.php?pid=1000题意:输入多组a和b,输出a+b的和并换行。代码:# include <stdio.h>int main (){ int a, b ; while (~scanf ("%d%d", &a, &b)) printf ("%d\n", a+b) ; return 0 ;} 阅读全文
posted @ 2012-01-06 14:08 Seraph2012 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 老衲本来用baidu空间来写blog,虽然baidu空间发代码各种排版恶心,但是既然选择了,就懒得去换了。没想到老衲的空间居然被baidu说违反空间协议3.3,发布了广告神马的,真是无奈啊,而且不光是我,小朋友的博客之前也被和谐了。要是能申诉回来,就把以前的解题报告移到这里来。以后做题就发在cnblogs了,嗯,cnblogs比baidu空间强大,复杂,还要花点时间搞清cnblogs的一些常用功能。 阅读全文
posted @ 2012-01-03 23:24 Seraph2012 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51