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 |
WA了 哥哥们帮小的看看吧 用C#include <stdio.h> #include <math.h> int main() { int N,a[40],i; float r,s,s0; scanf("%d",&N);\\ for( i=0 ; i<N; i++) { float x,y;\\ scanf("%f%f",&x,&y); r= sqrt(x*x+y*y); s=3.1415926*r*r/2; a[i]=(int)(s/50) + 1; } for(i=0; i<N; i++) printf("Property %d: This property will begin eroding in year %d.\n" ,N,a[i]); printf("END OF OUTPUT.\n"); return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator