| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
多了一些换行In Reply To:Re:为什么它就不通过呢?它老是Presentation Error。 Posted by:tcxgsy at 2005-08-02 17:07:08 > #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator