机试真题, 简单题.
#include<cstdio>
#include<algorithm>
using namespace std;
//const int MAXN=100+5;
#define MAXN 100+5
int arr[MAXN];
void output(int arr[],int n){
for(int i = 0; i < n; ++i)printf("%d ",arr[i]);
printf("\n");
}
int main(){
int n;
while(scanf("%d",&n)!=EOF){
for(int i = 0; i < n; i++)scanf("%d",&arr[i]);
sort(arr,arr+n);
output(arr,n);
}
return 0;
}