#1009. 前10名

前10名

说明

&nbsp 算法提高&nbsp 前10名&nbsp  
时间限制:1.0s&nbsp  &nbsp 内存限制:256.0MB
 &nbsp  &nbsp
问题描述
  数据很多,但我们经常只取前几名,比如奥运只取前3名。现在我们有n个数据,请按从大到小的顺序,输出前10个名数据。
输入格式
  两行。
  第一行一个整数n,表示要对多少个数据
  第二行有n个整数,中间用空格分隔。表示n个数据。
输出格式
  一行,按从大到小排列的前10个数据,每个数据之间用一个空格隔开。
样例输入
26
54&nbsp 27&nbsp 87&nbsp 16&nbsp 63&nbsp 40&nbsp 40&nbsp 22&nbsp 61&nbsp 6&nbsp 57&nbsp 70&nbsp 0&nbsp 42&nbsp 11&nbsp 50&nbsp 13&nbsp 5&nbsp 56&nbsp 7&nbsp 8&nbsp 86&nbsp 56&nbsp 91&nbsp 68&nbsp 59
样例输出
91&nbsp 87&nbsp 86&nbsp 70&nbsp 68&nbsp 63&nbsp 61&nbsp 59&nbsp 57&nbsp 56
数据规模和约定
  10< =n< =200,各个整数不超出整型范围