結果

問題 No.2092 Conjugation
ユーザー KudeKude
提出日時 2022-10-07 21:22:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 619 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 96,640 KB
最終ジャッジ日時 2023-09-02 23:40:53
合計ジャッジ時間 3,403 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,296 KB
testcase_01 AC 65 ms
71,280 KB
testcase_02 AC 69 ms
71,280 KB
testcase_03 AC 67 ms
71,040 KB
testcase_04 AC 66 ms
71,352 KB
testcase_05 AC 68 ms
71,408 KB
testcase_06 AC 64 ms
71,192 KB
testcase_07 AC 86 ms
80,812 KB
testcase_08 AC 96 ms
89,368 KB
testcase_09 AC 93 ms
83,636 KB
testcase_10 AC 94 ms
84,512 KB
testcase_11 AC 93 ms
84,772 KB
testcase_12 AC 90 ms
83,012 KB
testcase_13 AC 86 ms
81,352 KB
testcase_14 AC 88 ms
81,100 KB
testcase_15 AC 91 ms
82,728 KB
testcase_16 AC 107 ms
93,876 KB
testcase_17 AC 105 ms
96,640 KB
testcase_18 AC 100 ms
96,488 KB
testcase_19 AC 79 ms
87,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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