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 |
Re:结果是对的,为什么老是CE呢?In Reply To:结果是对的,为什么老是CE呢? Posted by:Brokensky at 2008-11-29 11:06:00 > #include<stdio.h> > void main() > { > int N,i; > scanf("%d",&N); > float X[N],Y[N]; > int YEAR[N]; > for(i=0;i<N;i++) > { > scanf("%f%f",&X[i],&Y[i]); > YEAR[i]=(int)((X[i]*X[i]+Y[i]*Y[i])*3.14/100)+1; > } > for(i=0;i<N;i++) > printf("Property %d: This property will begin eroding in year %d.\n",i+1,YEAR[i]); > 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