#674. 课例题--排序(2)
课例题--排序(2)
No testdata at current.
题目描述
给你n个整数,现在要你从大到小排序后输出
输入输出说明
输入说明
第一行一个整数n
接下来一行输入n个整数
输出说明
输出一行,为从大到小排序后的n个整数
题目样例
样例输入
5
3 1 8 6 1
样例输出
8 6 3 1 1
数据范围
- 70% 的数据,1<=n<=3000
- 100% 的数据1≤n≤5000,0≤ 需要排序的数≤5000
No testdata at current.
给你n个整数,现在要你从大到小排序后输出
第一行一个整数n
接下来一行输入n个整数
输出一行,为从大到小排序后的n个整数
5
3 1 8 6 1
8 6 3 1 1
By signing up a 西蒙科教 universal account, you can submit code and join discussions in all online judging services provided by us.