1177: 冒泡排序

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:95 Solved:46

Description

对n个数进行排序,从小到大输出

Input

第一行,输入一个整数n 第二行,输入n个整数

Output

排序完成的n个数

Sample Input Copy

6
7 4 2 9 1 2

Sample Output Copy

1 2 2 4 7 9