#include <stdio.h>
#define Pi 3.14159265
int main()
{
int nCase,i;
scanf("%d",&nCase);
for(i=1;i<=nCase;++i)
{
double x,y;
scanf("%lf%lf",&x,&y);
double area=(x*x+y*y)*Pi/2;
int year=area/50.0;
if(area/50.0-year>0)
year+=1;
printf("Property %d: This property will begin eroding in year %d.\n",i,year);
}
printf("END OF OUTPUT.\n");
return 0;
}
POJ 1005
最新推荐文章于 2015-04-24 16:06:17 发布