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> 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