Submission #70112


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n, x;
cin >> n;
vector<int> h(n);
for (int i = 0; i < n; i++) {
cin >> h[i];
}
sort(h.begin(), h.end(), greater<int>());
for (int i = 0; i < n; i++) {
cout << h[i] << endl;
}
}

ステータス

項目 データ
問題 0930 - 背の順
ユーザー名 woody_1227
投稿日時 2022-05-27 17:38:19
言語 C++17
状態 Accepted
得点 1
ソースコード長 338 Byte
最大実行時間 30 ms
最大メモリ使用量 696 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 27 ms 600 KB
1
rnd_2.txt AC 23 ms 696 KB
1
rnd_3.txt AC 30 ms 540 KB
1
rnd_4.txt AC 20 ms 512 KB
1
rnd_5.txt AC 20 ms 484 KB
1
sample.txt AC 18 ms 580 KB
1