結果

問題 No.2092 Conjugation
ユーザー えいじえいじ
提出日時 2023-10-06 00:21:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 19,808 KB
最終ジャッジ日時 2023-10-06 00:21:50
合計ジャッジ時間 3,129 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,980 KB
testcase_01 AC 15 ms
7,916 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 16 ms
7,896 KB
testcase_04 AC 15 ms
7,828 KB
testcase_05 AC 16 ms
7,860 KB
testcase_06 AC 15 ms
7,816 KB
testcase_07 AC 72 ms
11,680 KB
testcase_08 AC 105 ms
16,956 KB
testcase_09 AC 88 ms
15,472 KB
testcase_10 AC 91 ms
15,980 KB
testcase_11 AC 92 ms
15,852 KB
testcase_12 AC 88 ms
15,304 KB
testcase_13 AC 83 ms
14,976 KB
testcase_14 AC 82 ms
14,564 KB
testcase_15 AC 90 ms
15,548 KB
testcase_16 AC 112 ms
18,564 KB
testcase_17 AC 120 ms
19,808 KB
testcase_18 AC 119 ms
19,764 KB
testcase_19 AC 38 ms
9,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
xs = list(map(int, input().split()))
rr = [0] * (xs[0] + 3)
for x in xs:
    rr[x] -= 1
c = n
ans = []
for i in range(1, xs[0] + 1):
    ans.append(c)
    c += rr[i]
print(*ans)
0