Submission #43324


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
int sorted[201];
signed main(){
int n;
scanf("%d", &n);
int i;
for ( i = 0; i < n; i++ ) {
int a;
scanf("%d", &a);
sorted[a]++;
}
for ( i = 200; 100 <= i; i-- ) {
int j;
for ( j = 0; j < sorted[i]; j++ ) {
printf("%d\n", i);
}
}
return 0;
}

ステータス

項目 データ
問題 0930 - 背の順
ユーザー名 r1825
投稿日時 2018-09-16 12:25:53
言語 C
状態 Accepted
得点 1
ソースコード長 375 Byte
最大実行時間 60 ms
最大メモリ使用量 444 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
rnd_1.txt AC 60 ms 380 KB
1
rnd_2.txt AC 20 ms 408 KB
1
rnd_3.txt AC 20 ms 364 KB
1
rnd_4.txt AC 25 ms 292 KB
1
rnd_5.txt AC 26 ms 444 KB
1
sample.txt AC 29 ms 408 KB
1