結果

問題 No.2092 Conjugation
ユーザー ニックネームニックネーム
提出日時 2022-10-07 21:25:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 619 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 19,628 KB
最終ジャッジ日時 2023-09-02 23:49:35
合計ジャッジ時間 2,929 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,820 KB
testcase_01 AC 14 ms
7,844 KB
testcase_02 AC 14 ms
7,804 KB
testcase_03 AC 16 ms
7,768 KB
testcase_04 AC 14 ms
7,920 KB
testcase_05 AC 14 ms
7,920 KB
testcase_06 AC 14 ms
7,912 KB
testcase_07 AC 66 ms
10,632 KB
testcase_08 AC 93 ms
16,400 KB
testcase_09 AC 84 ms
14,804 KB
testcase_10 AC 86 ms
15,084 KB
testcase_11 AC 87 ms
15,168 KB
testcase_12 AC 81 ms
14,940 KB
testcase_13 AC 77 ms
14,020 KB
testcase_14 AC 72 ms
13,808 KB
testcase_15 AC 78 ms
14,492 KB
testcase_16 AC 99 ms
17,768 KB
testcase_17 AC 109 ms
19,608 KB
testcase_18 AC 111 ms
19,628 KB
testcase_19 AC 36 ms
9,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
b = [0]*a[0]
for v in a: b[v-1] += 1
for i in range(a[0]-1, 0, -1): b[i-1] += b[i]
print(*b)
0