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 |
我错哪了阿???????为啥是Presentation Error阿?#include<stdio.h> int main() { int N,j,i; float x,y; int t[50]; scanf("%i",&N); for(j=1;j<=N;j++) { scanf("%f%f",&x,&y); for(i=1;;i++) { if(x*x+y*y<100*i/3.1415926) { t[j]=i; break; } } } //output for(j=1;j<=N;j++) printf("Property %i:This property will begin eroding in year %i.\n",j,t[j]); printf("END OF OUTPUT."); return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator