#T317. 输出前k大的数
输出前k大的数
Description
Given an array, count the top k largest numbers and output these k numbers in descending order.
Input Format
The first line contains an integer n, representing the size of the array. (n < 100000).
The second line contains n integers, representing the elements of the array, separated by spaces. The absolute value of each integer does not exceed 100000000.
The third line contains an integer k, where k < n.
Output Format
Output the top k largest numbers in descending order, with each number on a separate line.
10
4 5 6 9 8 7 1 2 3 0
5
9
8
7
6
5