Problem2064--选择法排序

2064: 选择法排序

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求将给定的n个整数从大到小排序后输出。

Input

输入第一行给出一个不超过10的正整数n。第二行给出n个整数,其间以空格分隔。

Output

在一行中输出从大到小有序的数列,相邻数字间有一个空格,行末不得有多余空格。

Sample Input Copy

4
5 1 7 6

Sample Output Copy

7 6 5 1

Source/Category

297