Problem C: 选择排序1

Problem C: 选择排序1

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

选择排序特点:选最值放前面,不稳定,O(n2)

降序排序

Input

第一行 数组的元素个数

第二行数组每个元素

Sample Input Copy

4
1 2 3 4

Sample Output Copy

4 3 2 1