###### POJ 1005I Think I Need a Houseboat

1.刚开始想成是整个圆了，所以一直出错；

2.ceil()函数，第一次用，详见（ceil_百度百科

#include <cmath>
#include <iostream>
using namespace std;
const double PI = 3.1415926;

int main()
{
double x, y, n;
cin >> n;
for(int i = 1; i <= n; i++)
{
cin >> x >> y;
cout << "Property " << i << ": This property will begin eroding in year " << ceil(PI * (x * x + y * y) / 100) << '.' << endl;
}
cout << "END OF OUTPUT." << endl;
}


#### POJ1005-I Think I Need a Houseboat

2011-07-29 01:50:15

#### ZOJ_1049_I Think I Need a Houseboat

2012-10-23 15:22:25

#### 北大百炼1005 I Think I Need a Houseboat题解

2015-06-25 20:15:32

#### 北大OJ_1005题：I Think I Need a Houseboat

2015-06-19 13:08:55

#### HDU1065 I Think I Need a Houseboat 【数学递推】

2014-07-23 10:43:56

#### HDU 1065 I Think I Need a Houseboat 计算几何

2015-12-15 21:14:24

#### POJ 1005 I Think I Need a Houseboat (简单几何)

2016-02-12 20:44:30

#### hdu 1065 I Think I Need a Houseboat 水题，不过看discuss，应该有很多人在PI上栽跟头了

2015-03-11 14:10:51

#### 1049 I Think I Need a Houseboat

2008-02-12 16:17:00

#### NYOJ 159 I Think I Need a Houseboat

2014-02-12 16:53:36

## 不良信息举报

POJ 1005I Think I Need a Houseboat