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

为什么一直是WRONG ANSWER??

Posted by wangke327 at 2005-11-13 15:41:59 on Problem 1005
#include<stdio.h>
#include<math.h>
main()
{ double x,y,pi;
  int m,i,n;
  double s=0;
  pi=acos(-1.0);
  scanf("%d",&m);
  for(i=1;i<=m;i++)
  {scanf("%lf %lf",&x,&y);
   s=pi*(x*x+y*y);
     n=int(floor(s/100))+1;
     printf("Property %d: This property will begin eroding in year %d\n",i,n);
       }
     printf("END OF OUTPUT");
      }

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