题意
简单计算题
分析
代码如下
Memory: 252K Time: 0MS Length:16LINES
#include<iostream>
int main()
{
const double pi = 3.1415927;
int count = 0;
double x, y;
std::cin >> count;
int k = 0;
while (k < count)
{
std::cin >> x >> y;
std::cout << "Property " << ++k << ": This property will begin eroding in year " << int((x * x + y * y) / 100.0 * pi + 1) << "." << std::endl;
}
std::cout << "END OF OUTPUT." << std::endl;
return 0;
}