結果

問題 No.2092 Conjugation
ユーザー paruf4
提出日時 2022-10-21 21:32:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 212 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 33,780 KB
最終ジャッジ日時 2024-07-01 06:11:44
合計ジャッジ時間 4,273 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


n = int(input())
a = list(map(int, input().split()))
mx = max(a)
c = Counter(a)
cur = 0
b = []
used = set()
for i in range(mx):
    b.append(n-cur)
    if i+1 in used:
        continue
    cur += c[i+1]
    used.add(i+1)

print(*b)
0