1005 i think i need a houseboat
Posted sweet-ginger-candy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1005 i think i need a houseboat相关的知识,希望对你有一定的参考价值。
在测评系统好几次没有输出成功的原因是printf()中少了空格。
#include<iostream> #include<cstdio> #include<cmath> const double pi=3.1415926; using namespace std; int main() double x,y; int T; int t,h=1; cin>>T; while(h<=T) t=1; cin>>x>>y; double s=pi*(x*x+y*y)/2; t+=(int)(s/50); printf("Property %d:",h); printf(" This property will begin eroding in year %d.\n",t); h++; cout<<"END OF OUTPUT."<<endl; return 0;
以上是关于1005 i think i need a houseboat的主要内容,如果未能解决你的问题,请参考以下文章
POJ 1005 I Think I Need a Houseboat
POJ 1005 I Think I Need a Houseboat
I Think I Need a Houseboat POJ - 1005
1005 i think i need a houseboat