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 |
为什么一直是WRONG ANSWER??#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator