本蒟蒻第一次用RemoteJudge,不知道有什么问题
报错:Unknown Error(UKE)
估计是UVA有问题
#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int a[N];
int main()
{
int n;
scanf("%d" ,&n);
while (n)
{
for (int i=1; i<=n; i++) scanf("%d" ,a+i);
sort(a+1 ,a+1+n);
printf("%d" ,a[1]);
for (int i=2; i<=n; i++) printf(" %d" ,a[i]);
printf("\n");
scanf("%d" ,&n);
}
return 0;
}