Problem1545--中级第十课——快速选择排序

1545: 中级第十课——快速选择排序

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 39  Solved: 24
[Status] [Submit] [Creator:]

Description

读入一个n,再读入n个数,用快速选择排序法将他们按从大到小的顺序排列后输入。

Input

输入文件包含两行,第1行为一个正整数n,n<=10000,第2行为n个整数。

Output

输出文件仅一行,为排好序的n个数。数字之间用空格分开

Sample Input Copy

5
23 77 17 98 65

Sample Output Copy

98 77 65 23 17

Source/Category