1533: 【入门】数组元素的排序

Memory Limit:16 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:1

Description

对数组的元素按从小到大进行排序

Input

有两行 第一行有一个整数n( 5 <= n <= 10 ) 第二行有n个整数

Output

输出更新后的数组

Sample Input Copy

8
1 2 3 6 8 7 4 5

Sample Output Copy

1 2 3 4 5 6 7 8