#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;
}
poj 1005(水题)
最新推荐文章于 2024-06-06 23:38:16 发布
626

被折叠的 条评论
为什么被折叠?



