View Code
水题,不过一开始没读懂,交给了翻译官~~
/*
MDK 1005 Accepted 396K 0MS G++ 398B 2011-05-29 10:05:13
*/
#include<cstdio>
#define PI 3.14159265
int main()
{
int i=0,T,year;
double x,y,area;
scanf("%d\n",&T);
while(T--)
{
i++;
scanf("%lf%lf",&x,&y);
area=PI*(x*x+y*y)/2;
year=(int)(area/50)+1;
printf("Property %d: This property will begin eroding in year %d.\n",i,year);
}
printf("END OF OUTPUT.\n");
return 0;
}