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 |
结果是对的,为什么老是CE呢?#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