Submission #61168
ソースコード
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> #include<cmath> using namespace std; int main() { int n; cin >> n; vector< int > a(n,0); for ( int i=0;i<n;i++) { cin >> a[i]; } sort(a.begin(),a.end()); reverse(a.begin(),a.end()); for ( int i=0;i<n;i++) { cout << a[i] << endl; } // cout << sintyou.at(n-1)-sintyou.at(0) << endl; } |
ステータス
項目 | データ |
---|---|
問題 | 0930 - 背の順 |
ユーザー名 | <span style="color:#000000;font-weight:bold;">ei2031</span> |
投稿日時 | 2020-07-20 18:08:11 |
言語 | C++17 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 397 Byte |
最大実行時間 | 21 ms |
最大メモリ使用量 | 476 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
rnd_1.txt | AC | 18 ms | 476 KB |
1
|
rnd_2.txt | AC | 19 ms | 452 KB |
1
|
rnd_3.txt | AC | 20 ms | 424 KB |
1
|
rnd_4.txt | AC | 19 ms | 396 KB |
1
|
rnd_5.txt | AC | 19 ms | 368 KB |
1
|
sample.txt | AC | 21 ms | 468 KB |
1
|