Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:哪里的错误?请高手指点...

Posted by 90405137 at 2004-11-17 16:47:58 on Problem 1005
In Reply To:哪里的错误?请高手指点... Posted by:90401408 at 2004-11-17 02:27:51
> 调试以及答案完全符合要求,但总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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator