点击打开链接
#include<cstdio>
#include<iostream>
#include<cmath>
#define pi 3.1415926
using namespace std;//ceil 为向上取整函数,所得的值为浮点型
int main() {
int t,i;
double a,b;
cin>>t;
for(i=1; i<=t; i++) {
cin>>a>>b;
//半椭圆面积为(x*x+y*y)/pi/2,100=2*50
printf("Property %d: This property will begin eroding in year %.0lf.\n",i,ceil((a*a+b*b)*pi/100));
}
cout<<"END OF OUTPUT."<<endl;
}