Submission #36065
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #include<iostream> #include<cstdio> #include<vector> #include<algorithm> using namespace std; vector< int >high; int main(){ int n; scanf ( "%d" ,&n); for ( int i=0;i<n;i++){ int a; scanf ( "%d" ,&a); high.push_back(a); } sort(high.begin(),high.end(),greater< int >() ); for ( int i=0;i<n;i++){ printf ( "%d\n" ,high[i]); } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0930 - 背の順 |
ユーザー名 | ei1728 |
投稿日時 | 2018-05-25 17:21:53 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 375 Byte |
最大実行時間 | 32 ms |
最大メモリ使用量 | 524 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
rnd_1.txt | AC | 24 ms | 476 KB |
1
|
rnd_2.txt | AC | 23 ms | 448 KB |
1
|
rnd_3.txt | AC | 32 ms | 420 KB |
1
|
rnd_4.txt | AC | 26 ms | 524 KB |
1
|
rnd_5.txt | AC | 25 ms | 376 KB |
1
|
sample.txt | AC | 22 ms | 472 KB |
1
|