Submission #61158


ソースコード

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:57:49
言語 C++
状態 Accepted
得点 1
ソースコード長 272 Byte
最大実行時間 28 ms
最大メモリ使用量 704 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 28 ms 604 KB
1
rnd_2.txt AC 15 ms 704 KB
1
rnd_3.txt AC 20 ms 544 KB
1
rnd_4.txt AC 24 ms 640 KB
1
rnd_5.txt AC 19 ms 612 KB
1
sample.txt AC 14 ms 576 KB
1