1120: 选择排序练习

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:22 Solved:9

Description

1 输入一个正整数n 
2 输入n个正整数,以空格隔开
2 采用选择排序算法,将这n个正整数升序排好
3 输出排序结果
注意输入输出格式

Input

5
10 15 8 3 11

Output

3 8 10 11 15

Sample Input Copy

5
6 5 4 3 2

Sample Output Copy

2 3 4 5 6

Source/Category