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

例子运行的也对,但为什么都是WA?

Posted by yly at 2011-02-26 09:37:45 on Problem 1005
#include<iostream>
using namespace std;
int main()
{
    int N,i,j;
    cin>>N;
    
    float x[50],y[50],s;
    for(i=0;i<N;i++)
    {
          cin>>x[i]>>y[i];
    }
    for(i=0;i<N;i++)
    {
       s=0.0;
       j=0;
       while((x[i]*x[i]+y[i]*y[i])*3.14>2*s)
       {
          s=s+50;
          j++;
       }
       cout<<"Property "<<i+1<<": This property will begin eroding in year "<< j<<"."<<endl;
    }
    cout<<"END OF OUTPUT"<<endl;
  return 0;
}

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