| ||||||||||
| 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 | |||||||||
I Think I Need a Houseboat#include<stdio.h>
#include<math.h>
#define PI acos(-1)
int main()
{
int n,k,i;
double x,y;
scanf("%d",&n);
for (i=1;i<=n;i++)
{
scanf("%lf%lf",&x,&y);
k=(int) ceil(PI*(x*x+y*y)/2/50);
printf("Property %d: This property will begin eroding in year %d.\n",i,k);
}
printf("END OF OUTPUT.");
return(0);
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator