摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1994按题意写即可View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 int t; 6 double y,q,e,f,g,sum1,sum2; 7 scanf("%d",&t); 8 while(t--) 9 {10 scanf("%lf%lf%lf%lf%lf",&y,&q,&e,&f,&g);11 sum1= 阅读全文
posted @ 2013-04-25 19:53 执着追求的IT小小鸟 阅读(151) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1141找到answer了ln(n!) < n * ln(2)!!!!!!!!!!!!!!!!!!View Code 1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 long x,y,k,i; 6 long double p,t,z; 7 while(scanf("%d",&x)&&x!=0) 8 { 9 y=(x-1960)/10+2;10 z=pow(2,y);11 阅读全文
posted @ 2013-04-25 10:03 执着追求的IT小小鸟 阅读(111) 评论(0) 推荐(0)