#include<iostream>
#include<cmath>
using namespace std;
int main()
{
const double pai = 3.1415926;
int n;
cin >> n;
for (int Z = 1; Z <= n; Z++)
{
long squre = 50; int N = 1;
double R = sqrt(2 * squre / pai);
double X, Y; cin >> X >> Y;
while (R < sqrt(X * X + Y * Y)) { squre += 50; R = sqrt(2 * squre / pai); N++; }
cout << "Property " << Z << ": This property will begin eroding in year " << N << "." << endl;
if (Z == n) cout << "END OF OUTPUT.";
}
return 0;
}
记录POJ的代码,本题比较简单不做赘述