您的位置:首页 > 其它

POJ 1005--I Think I Need a Houseboat

2017-07-17 00:53 363 查看

题意

简单计算题

分析

代码如下

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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  poj