1119: 一维数组排序
import java.util.Arrays;
import java.util.Scanner;
public class Main {
static int []a = new int[1010];public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n=cin.nextInt();for(int i=0;i<n;i++)a[i]=cin.nextInt();Arrays.sort(a,0,n);for(int i=0;i<n;i++)System.out.printf("%d ",a[i]);}
}