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 |
哪里的错误?请高手指点...调试以及答案完全符合要求,但总wa. #include<iostream.h> #include<math.h> int N,i,years; double x,y; const double pi=acosl(-1.0); void main() {cin>>N; for(i=1;i<=N;i++) {cin>>x>>y; years=(int)ceil(pi*(x*x+y*y)/100); cout<<"Property "<<i<<": This property will begin eroding in year "<<years<<"."<<endl; } cout<<"END OF OUTPUT"<<endl; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator