Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:那错了!!!!帮我看一下呀!大师兄!In Reply To:那错了!!!!帮我看一下呀!大师兄! Posted by:y05zyg at 2006-03-07 18:58:57 > # include <iostream.h> > # include<math.h> > const double q=acos(-1); > int main() > { > int t,n; > float x,y; > double r; > cin>>t; > for(int i=1;i<=t;i++) > { > cin>>x>>y; > if(x!=0&&y>=0) > { > r=sqrt(x*x+y*y); > n=(int)(q*r*r/2)/50; > cout<<"Property"<<' ' <<i<<":This property will begin eroding in year "<<n+1<<endl; > } > } > cout<<"END OF OUTPUT"<<endl; > return 0; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator