//给出两点坐标, 求出半径,求面积就可以!简单题!
#include "iostream"
#include "cmath"
using namespace std;
const double pi = 4.0 * atan(1.0);
const int d = 50;
int main()
{
int tc, count = 0, ans;
double x, y, area;
cin >> tc;
while (tc--)
{
count++;
cin >> x >> y;
area = 0.5 * pi * (x*x + y*y);
ans = area / 50;
cout << "Property " << count << ": This property will begin eroding in year " << ans + 1<< "." << endl;
}
cout << "END OF OUTPUT." << endl;
system("pause");
}
poj 1005 I Think I Need a Houseboat
最新推荐文章于 2023-08-04 09:51:04 发布