题目链接:
http://acm.hdu.edu.cn/showproblem.php?pid=1065
#include<iostream>
#include<cstdio>
#include<math.h>
#define PI 3.1415926
using namespace std;
int main()
{
double a,b,t,area;
int T,icase=1;
scanf("%d",&T);
while(T--)
{
scanf("%lf%lf",&a,&b);
area=PI*(a*a+b*b);
t=area/100.0;
printf("Property %d: This property will begin eroding in year %d.\n",icase++,(int)t+1);
// printf("Property %d: This property will begin eroding in year %d.\n",icase++,(int)ceil(t));
//两个都可以
}
printf("END OF OUTPUT.\n");
return 0;
}