Problem1501--选择法排序

1501: 选择法排序

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

Description

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

Input

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

Output

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

Sample Input Copy

4
5 1 7 6

Sample Output Copy

7 6 5 1

Source/Category