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 |
各位大哥大姐请帮帮忙,看一下那错了题号1005 #define PAI 3.1 #include "stdio.h" int main() { int i,N; float a,b; double c[20],d; scanf("%d",&N); for(i=0;i<N;i++) {scanf("%f%f",&a,&b); c[i]=a*a+b*b; } for(i=1;i<=N;i++) {d=c[i-1]*PAI/100+1; printf("Property %d: This property will begin eroding in year %.0lf.\n",i,d); } printf("END OF OUTPUT.\n"); return 0; } 返回结果是:Wrong Answer Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator