#include<iostream>
#include<cmath>
using namespace std;int main() {
int n;
cin >> n;
int i,k = 1;
while (n--) {
float x, y;
cin >> x >> y;
float sum,num;
sum = pow(x, 2) + pow(y, 2); //pow()次方函数
for (i = 1;; i++) {
num = 100 * i / 3.14;
if (num > sum)
break;
}
cout << "Property " << k++ << ": This property will begin eroding in year " << i << "." << endl;
}
cout << "END OF OUTPUT." << endl;
return 0;
}
08-01
2584
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交