1. 程式人生 > >poj 1005 I Think I Need a Houseboat 解題報告

poj 1005 I Think I Need a Houseboat 解題報告

 
#include 
<iostream>
#include 
<cstdio>
#include 
<cmath>usingnamespace std;

constdouble PI=3.1415926;

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