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;
}
*作者:国风崽
*/
#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;
}
相关文章推荐
- pku 1005 I Think I Need a Houseboat
- PKU 1005 I Think I Need a Houseboat
- PKU_1005_I Think I Need a Houseboat
- POJ 1005I Think I Need a Houseboat解题报告——【PKU ACM】
- I Think I Need a Houseboat 1005 PKU
- POJ1005-I Think I Need a Houseboat
- poj1005 I Think I Need a Houseboat
- poj 1005 I Think I Need a Houseboat-----计算几何
- poj 1005 I Think I Need a Houseboat【math】
- 1005:I Think I Need a Houseboat
- POJ 1005-I Think I Need a Houseboat
- POJ-1005 I Think I Need a Houseboat-房屋淹没
- poj1005 I Think I Need a Houseboat 水题
- POJ 1005 I Think I Need a Houseboat (水题)
- Poj_1005_I Think I Need A HouseBoat
- 1005:I Think I Need a Houseboat
- 【POJ】1005 I Think I Need a Houseboat
- I Think I Need a Houseboat - POJ 1005 水题
- POJ-1005 I Think I Need a Houseboat
- 百练 1005 I Think I Need a Houseboat