| ||||||||||
| 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 | |||||||||
哈哈意义#include<stdio.h>
main()
{
double a,s,d,f,g;
int z,x;
while(~scanf("%d",&z))
{
for(x=1;x<=z;x++)
{
scanf("%lf%lf",&a,&s);
a=a*a+s*s;
for(d=1.0;;)
{
f=100*d;
if(f>=3.14*a)break;
d++;
}
printf("Property %d: This property will begin eroding in year %.0lf.\n",x,d
);
if(x==z)printf("END OF OUTPUT.\n");
}
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator