| ||||||||||
| 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:Presentation Error什么意思? Posted by:328776870 at 2006-09-28 20:00:02 > #include<stdio.h>
> #include<math.h>
> #define PI 3.142
> main()
> {int i,n,year[200];
> float x,y;
> scanf("%d",&n);
> for(i=0;i<n;i++)
> {
> scanf("%f %f",&x,&y);
> year[i]=(int)(((x*x+y*y)*PI/2)/50+1);
> printf("Property %d : This property will begin eroding in year %d.\n",i+1,year[i]);
> }
> printf("END 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