测试
This commit is contained in:
@@ -3,8 +3,20 @@
|
||||
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
|
||||
*/
|
||||
Reference in New Issue
Block a user