Submission #61151


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int N, b[100009];
cin >> N;
for (int i = 0; i < N; i++) cin >> b[i];
sort(b, b + N,greater<int>());
for (int i = 0; i < N; i++) cout << b[i] << endl;
return(0);
}

ステータス

項目 データ
問題 0930 - 背の順
ユーザー名 r2031
投稿日時 2020-07-20 17:53:43
言語 C++
状態 Accepted
得点 1
ソースコード長 272 Byte
最大実行時間 27 ms
最大メモリ使用量 600 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 27 ms 600 KB
1
rnd_2.txt AC 17 ms 560 KB
1
rnd_3.txt AC 21 ms 400 KB
1
rnd_4.txt AC 20 ms 364 KB
1
rnd_5.txt AC 20 ms 588 KB
1
sample.txt AC 18 ms 420 KB
1