POJ 1005I Think I Need a Houseboat

原创 2012年03月26日 10:55:59

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;
}


版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

【POJ-1005】I Think I Need a Houseboat

I Think I Need a Houseboat Time Limit: 1000MS   Memory Limit: 10000K Total Submissio...

(POJ 1005)I Think I Need a Houseboat

I Think I Need a HouseboatDescriptionFred Mapper is considering purchasing some land in Louisiana to...

POJ-1005 I Think I Need a Houseboat解题报告

Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. I...

poj-1005 I Think I Need a Houseboat

I Think I Need a Houseboat                     ...

poj 1005 I Think I Need a Houseboat

I Think I Need a Houseboat Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 741...

POJ 1005 I Think I Need a Houseboat

I Think I Need a Houseboat Time Limit: 1000MS   Memory Limit: 10000K Total Submissio...

【POJ】1005 I Think I Need a Houseboat

I Think I Need a Houseboat Time Limit: 1000MS   Memory Limit: 10000K Total Submissio...

POJ1005,I Think I Need a Houseboat,数学水题

I Think I Need a Houseboat Description Fred Mapper is considering purchasing some land in Louisi...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)