还是水题。。
题目意思说白了就是让你求半圆的面积。
#include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
#define pi 3.14159
int main(){
int T;
cin>>T;
double x,y;
int i=1;
while(T--){
cin>>x>>y;
double ara=(x*x+y*y)*pi/2;
cout<<"Property "<<i++<<": This property will begin eroding in year "<<(int)ara/50+1<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}