Submission #50264


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
signed main(){
int n;
long long e;
vector <long long> a;
cin >>n;
for(int b=0;b<n;b++){
cin >>e;
a.push_back(e);
}
sort(a.begin(),a.end(),greater<long long>());
for(int o=0;o<n;o++){
cout <<a[o]<<'\n';
}
return(0);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 31 ms 604 KB
1
rnd_2.txt AC 23 ms 448 KB
1
rnd_3.txt AC 15 ms 540 KB
1
rnd_4.txt AC 21 ms 508 KB
1
rnd_5.txt AC 21 ms 476 KB
1
sample.txt AC 18 ms 576 KB
1