您的位置:首页 > 其它

I Think I Need a Houseboat(PKU1005)

2008-06-01 19:03 246 查看
/*题目四:I Think I Need a Houseboat(PKU1005)
*作者:国风崽
*/
#include<iostream>
using namespace std;
int main(){
float x,y;//坐标
int testcase,t=0;
cin>>testcase;
while(testcase){
cin>>x>>y;
++t;
cout<<"Property "<<t<<": This property will begin eroding in year "<<(int)(3.1415926*(x*x+y*y)/100+1)<<"."<<endl;
--testcase;
}
cout<<"END OF OUTPUT."<<endl;
return 0;

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