//============================================================================
// Name : 1005.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostream>
using namespace std;
#define PI 3.14159265
int main() {
int n;
cin >> n;
double x, y;
for (int i = 0; i < n; i++) {
cin >> x >> y;
int result = (int) (PI * (x * x + y * y) / 100) + 1;
cout << "Property " << (i + 1)
<< ": This property will begin eroding in year " << result
<< "." << endl;
}
cout << "END OF OUTPUT.";
return 0;
}
poj1005
最新推荐文章于 2019-12-30 22:31:16 发布