POJ 1005I Think I Need a Houseboat解题报告——【PKU ACM】

这道题要读懂题目。

海岸是以半个圆形的形状在被腐蚀。
#include<iostream> using namespace std; int main(){ int n,years,time(1); float x,y,pai(3.1416f); cin>>n; while(n--){ cin>>x>>y; years=pai*(x*x+y*y)/100.0+1; cout<<"Property "<<time<<": This property will begin eroding in year "<<years<<"."<<endl; ++time; } cout<<"END OF OUTPUT."<<endl; return 0; } POJ 1005I Think I Need a Houseboat解题报告——【PKU ACM】_第1张图片

你可能感兴趣的:(POJ 1005I Think I Need a Houseboat解题报告——【PKU ACM】)