| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
输入问题吧?用%lf输入double,用%f输入float,不要搞混了,不要以为自己机器上能跑过去就poj也行In Reply To:Re:我说啊,你只用4位小数也别用3.1415啊,后面那位可是9啊,这该有多大误差?这里没有spj e精度的题目多了 Posted by:zerotext at 2005-05-14 23:04:19 >
>
> 我快疯了,改为
> #include<stdio.h>
> #include<math.h>
> main()
> {int n,j,i;
> double r,a,b,temp,pi;
> pi=acos(-1.0);
> scanf("%d",&n);
> for(i=1;i<=n;)
> {while(scanf("%f%f",&a,&b)==2)
> {if(a>b)
> temp=a;
> else
> temp=b;
> for(j=1;r<temp;j++)
> r=sqrt(50*j*2/pi);
> printf("Property %d: This property will begin eroding in year %d.\n",i,j-1);
> i++;
> break;
> }
> }
> printf("END OF OUTPUT.");
> }
> 还是WA了
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator