結果

問題 No.2092 Conjugation
ユーザー AkariAkari
提出日時 2022-10-07 21:30:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 202 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 42,452 KB
最終ジャッジ日時 2023-09-03 00:22:42
合計ジャッジ時間 7,166 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
29,664 KB
testcase_01 AC 133 ms
29,700 KB
testcase_02 AC 142 ms
29,660 KB
testcase_03 AC 138 ms
29,632 KB
testcase_04 AC 137 ms
29,636 KB
testcase_05 AC 132 ms
29,688 KB
testcase_06 AC 131 ms
29,648 KB
testcase_07 AC 154 ms
37,976 KB
testcase_08 AC 189 ms
42,068 KB
testcase_09 AC 171 ms
41,520 KB
testcase_10 AC 175 ms
41,420 KB
testcase_11 AC 173 ms
42,024 KB
testcase_12 AC 169 ms
41,772 KB
testcase_13 AC 168 ms
41,076 KB
testcase_14 AC 165 ms
41,028 KB
testcase_15 AC 180 ms
41,360 KB
testcase_16 AC 199 ms
42,396 KB
testcase_17 AC 198 ms
42,160 KB
testcase_18 AC 202 ms
42,452 KB
testcase_19 AC 163 ms
30,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import numpy as np


def main():
    n = int(input())
    A = np.fromstring(input(), np.int64, sep=' ')
    B = np.zeros(A[0] + 1, np.int64)
    B[0] = n
    for a in A: B[a] -= 1
    B = B.cumsum()
    print(' '.join(map(str, B[:A[0]].tolist())))


if __name__ == '__main__':
    main()
0