22 lines
400 B
C++
22 lines
400 B
C++
// 测试
|
|
#include<bits/stdc++.h>
|
|
using namespace std;
|
|
#define int long long
|
|
#define endl '\n'
|
|
|
|
signed main(){
|
|
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
|
|
multiset<int, greater<int>> ms;
|
|
int n; cin >> n;
|
|
for(int i = 1; i <= n; i++){
|
|
int x; cin >> x;
|
|
ms.insert(x);
|
|
}
|
|
for(auto k:ms) cout << k << ' ';
|
|
cout << endl;
|
|
return 0;
|
|
}
|
|
/*
|
|
5
|
|
10 9 8 12 14
|
|
*/ |