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 s110800815 at 2009-01-20 14:25:47 on Problem 1005
#include <math.h>
#define pi 3.141592654
int main()
{
      int n,i;
      scanf("%d",&n);
      for(i=0;i<n;i++)
      {
                float x,y,r,s,year;
                scanf("%f%f",&x,&y);
                r=hypot(x,y);
                s=0.5*pi*r*r;
                s=ceil(s);
                year=ceil(s/50);
                printf("Property %d: This property will begin eroding in year %.0f.\n",i+1,year);
      }
 printf("END OF OUTPUT.\n");
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