import java.util.Scanner;
import java.util.Arrays;
public class 数列排序{
public static void main(String []args){
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int num[] = new int[a];
for(int i = 0; i<a; i++){
num[i] = in.nextInt();
}
Arrays.sort(num);
for(int k = 0; k<a; k++)
System.out.print(num[k]+" ");
}
}
蓝桥基础练习——数列排序
最新推荐文章于 2024-08-15 14:47:41 发布