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:为什么它就不通过呢?它老是Presentation Error。

Posted by tcxgsy at 2005-08-02 17:07:08
In Reply To:为什么它就不通过呢?它老是Presentation Error。 Posted by:tcxgsy at 2005-08-02 17:06:31
#define Max 1024
#define PI 3.1416
#include<stdio.h>
#include<math.h>
main()
{int n,i;
 double X[Max],Y[Max],m[Max];
 int Z;
 scanf("%d",&n);
 for(i=1;i<=n;i++)
     {printf("\n");
      scanf("%lf%lf",&X[i],&Y[i]);
     }   
 for(i=1;i<=n;i++)
    {m[i]=(PI*(X[i]*X[i]+Y[i]*Y[i]))/100;
     Z=0;
     while(m[i]>Z)
     Z++;
  printf("\nProperty %d: This property will begin eroding in year %d.",i,Z);
    }
 printf("\nEND OF OUTPUT.\n");
}


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