#include "iostream"
#include "cmath"
using namespace std;
const double ip = 3.1415926;
const int square = 50;
int main()
{
int TestCase, casecount = 0;
cin >> TestCase;
while (TestCase--)
{
casecount++;
double X, Y;
cin >> X >> Y;
double r = sqrt(double (X * X + Y * Y));
double S = ip * r * r / 2;
int year = S / square + 1;
cout << "Property " << casecount << ": This property will begin eroding in year " << year << "."<< endl;
}
if (TestCase < 0)
cout << "END OF OUTPUT." << endl;
}
ZOJ 1049 I Think I Need a Houseboat
最新推荐文章于 2017-10-25 20:19:31 发布