結果

問題 No.2092 Conjugation
ユーザー paruf4paruf4
提出日時 2022-10-21 21:32:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 173 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 31,668 KB
最終ジャッジ日時 2023-09-13 21:51:55
合計ジャッジ時間 3,635 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,528 KB
testcase_01 AC 18 ms
8,452 KB
testcase_02 AC 18 ms
8,596 KB
testcase_03 AC 17 ms
8,620 KB
testcase_04 AC 17 ms
8,652 KB
testcase_05 AC 18 ms
8,544 KB
testcase_06 AC 18 ms
8,580 KB
testcase_07 AC 124 ms
18,304 KB
testcase_08 AC 157 ms
26,148 KB
testcase_09 AC 142 ms
23,384 KB
testcase_10 AC 143 ms
23,848 KB
testcase_11 AC 143 ms
24,052 KB
testcase_12 AC 144 ms
22,924 KB
testcase_13 AC 140 ms
21,636 KB
testcase_14 AC 134 ms
21,476 KB
testcase_15 AC 141 ms
22,868 KB
testcase_16 AC 164 ms
27,792 KB
testcase_17 AC 173 ms
25,144 KB
testcase_18 AC 163 ms
31,668 KB
testcase_19 AC 39 ms
9,800 KB
権限があれば一括ダウンロードができます

ソースコード

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