每日一水
newxbee
这个作者很懒,什么都没留下…
展开
-
每日一水~ 2012-4-24 HDU2002 HDU1004
HDU2002:#import #define PI 3.1415927 double r; int main() {while (~scanf("%lf",&r)) {printf("%.3lf\n",(4.0/3.0)*PI*r*r*r);}} HDU 1004: #import #import int n; struct word { int num; char w原创 2012-04-24 22:29:12 · 320 阅读 · 0 评论 -
每日一水~ 2012-04-25 HDU 1021 HDU 1002
HDU 1021: 饿。。打表。。算出每项%3的结果即可 #import int a[1000001]; int main() { int input; a[0] = 7%3; a[1] = 11%3; for (int i=2; i<=1000000; ++i) a[i] = (a[i-1] + a[i-2])%3; while (~scanf("%d",&input))原创 2012-04-25 10:10:30 · 570 阅读 · 0 评论