#include<iostream>
#include<algorithm>
using namespace std;
const int N = 100010;
int n, l;
int q[N];
int main()
{
cin >> n;
for (int i = 1; i <= n; i++)
cin >> q[i];
//n个数由大到小排列
sort(q + 1, q + n + 1, greater<int>());
for (int i = 1; i <= n; i++)
cout << q[i] << ' ';
cout << endl;
return 0;
}
08-30
715
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)