結果

問題 No.2092 Conjugation
ユーザー KudeKude
提出日時 2022-10-07 21:22:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 413 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 95,744 KB
最終ジャッジ日時 2024-06-12 05:43:46
合計ジャッジ時間 2,922 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

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