Submission #50258


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include<bits/stdc++.h>
using namespace std;
signed main()
{
cin.tie(0);
ios::sync_with_stdio(false);
vector<int> vec;
int n, a;
cin >> n;
for ( int i = 0; i < n; ++i ) {
cin >> a;
vec.push_back(a);
}
sort( vec.begin(), vec.end(), greater<int>() );
for ( int i = 0; i < n; ++i ) {
cout << vec.at(i) << '\n';
}
return 0;
}

ステータス

項目 データ
問題 0930 - 背の順
ユーザー名 もけ
投稿日時 2019-06-06 17:35:41
言語 C++
状態 Accepted
得点 1
ソースコード長 387 Byte
最大実行時間 63 ms
最大メモリ使用量 604 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 22 ms 604 KB
1
rnd_2.txt AC 18 ms 564 KB
1
rnd_3.txt AC 24 ms 516 KB
1
rnd_4.txt AC 21 ms 600 KB
1
rnd_5.txt AC 24 ms 552 KB
1
sample.txt AC 63 ms 504 KB
1