| ||||||||||
| 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:我错哪了阿???????为啥是Presentation Error阿?In Reply To:我错哪了阿???????为啥是Presentation Error阿? Posted by:plich at 2006-10-07 12:21:47 > #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