问题2713--ACM Teams

2713: ACM Teams

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

The 5th Zhejiang Provincial Collegiate Programming Contest 2008 is coming. Some ZSTU ACM Teams will go to the contest. Now, here are n teams, and only m teams can go to Zhejiang university. Please print them.

输入

Inpput contains two lines. The first line has 2 integer numbers, n(1 <= n <= 100) and m (1 <= m <= n). The second line has n integer numbers between 0 to 100.

输出

Output contains m lines. They are the top m numbers, each number in one line, and they should output from big to small.

样例输入 Copy

6 4
50 50 10 60 50 50

样例输出 Copy

60
50
50
50

来源/分类

yhr