結果

問題 No.2092 Conjugation
ユーザー 👑 rin204rin204
提出日時 2022-10-07 21:21:20
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 95,844 KB
最終ジャッジ日時 2023-09-02 23:34:12
合計ジャッジ時間 3,338 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,412 KB
testcase_01 AC 68 ms
71,392 KB
testcase_02 AC 67 ms
71,580 KB
testcase_03 AC 67 ms
71,392 KB
testcase_04 AC 67 ms
71,452 KB
testcase_05 AC 65 ms
71,400 KB
testcase_06 AC 66 ms
71,220 KB
testcase_07 AC 87 ms
80,080 KB
testcase_08 AC 100 ms
88,940 KB
testcase_09 AC 97 ms
82,544 KB
testcase_10 AC 95 ms
84,084 KB
testcase_11 AC 94 ms
83,996 KB
testcase_12 AC 92 ms
82,344 KB
testcase_13 AC 87 ms
80,532 KB
testcase_14 AC 83 ms
80,060 KB
testcase_15 AC 87 ms
81,892 KB
testcase_16 AC 102 ms
93,424 KB
testcase_17 AC 106 ms
95,844 KB
testcase_18 AC 108 ms
95,552 KB
testcase_19 AC 81 ms
87,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(*ans)
0