Submission #63510


ソースコード

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#define _GLIBCXX_DEBUG//実行時、何も出なかったらこれを使う
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
#include<queue>
#include<stack>
#include<map>
#include<numeric>
#include<climits>
#include<limits>//
#include <stdio.h>//
#include<cmath>
#include<iomanip>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }
int dy[] = {1,0}; //次に行くところ
int dx[] = {0,1}; //s上に同じ
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
//l1,q9,0o,b6
int n;
cin >> n;
vector<int> a(n);
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] << '\n';
}
return 0;
}

ステータス

項目 データ
問題 0930 - 背の順
ユーザー名 kumakuma
投稿日時 2020-09-01 20:46:30
言語 C++17
状態 Accepted
得点 1
ソースコード長 2213 Byte
最大実行時間 32 ms
最大メモリ使用量 640 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 32 ms 604 KB
1
rnd_2.txt AC 23 ms 560 KB
1
rnd_3.txt AC 16 ms 388 KB
1
rnd_4.txt AC 16 ms 600 KB
1
rnd_5.txt AC 22 ms 552 KB
1
sample.txt AC 16 ms 640 KB
1