| ||||||||||
| 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 | |||||||||
格式错误,一般是多或者少输出空格,空行之类的In Reply To:请问Presentation Error是什么意思啊? Posted by:200730740412 at 2007-12-30 22:08:56 > 以下是我的代码:
> #include <stdio.h>
> main()
> {int a[100],i,j,n,m,t,l;
> char str[100][51],s[51];
> scanf("%d%d",&n,&m);
> for(i=0;i<m;i++)
> for(j=0;j<=n;j++)
> scanf("%c",&str[i][j]);
> for(i=0;i<m;i++)
> for(a[i]=0,j=0;j<n;j++)
> for(t=j+1;t<=n;t++)
> if(str[i][j]>str[i][t]) a[i]++;
> for(i=0;i<m-1;i++)
> for(j=i+1;j<m;j++)
> if(a[i]>a[j])
> {l=a[i];
> a[i]=a[j];
> a[j]=l;
> for(t=0;t<=n;t++)
> {s[t]=str[i][t];
> str[i][t]=str[j][t];
> str[j][t]=s[t];
> }
> }
> for(i=0;i<m;i++)
> for(j=0;j<=n;j++)
> printf("%c",str[i][j]);
> }
> 提交后就出现了Presentation Error问题,请问各位高手这是什么问题,应该如何解决呢?
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator