結果

問題 No.2092 Conjugation
ユーザー 👑 KazunKazun
提出日時 2022-10-07 21:23:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 96,364 KB
最終ジャッジ日時 2023-09-02 23:42:01
合計ジャッジ時間 3,509 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,280 KB
testcase_01 AC 70 ms
71,448 KB
testcase_02 AC 69 ms
71,608 KB
testcase_03 AC 69 ms
71,612 KB
testcase_04 AC 68 ms
71,300 KB
testcase_05 AC 68 ms
71,464 KB
testcase_06 AC 67 ms
71,628 KB
testcase_07 AC 90 ms
81,008 KB
testcase_08 AC 105 ms
89,608 KB
testcase_09 AC 99 ms
83,468 KB
testcase_10 AC 99 ms
84,576 KB
testcase_11 AC 99 ms
84,848 KB
testcase_12 AC 100 ms
83,132 KB
testcase_13 AC 93 ms
80,840 KB
testcase_14 AC 94 ms
80,928 KB
testcase_15 AC 95 ms
82,732 KB
testcase_16 AC 110 ms
93,592 KB
testcase_17 AC 114 ms
95,264 KB
testcase_18 AC 111 ms
96,364 KB
testcase_19 AC 83 ms
87,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N=int(input())
    A=list(map(int,input().split()))

    X=[0]*(A[0]+1); X[0]=N
    for a in A:
        X[a]-=1

    for i in range(1,A[0]+1):
        X[i]+=X[i-1]
    return X[:A[0]]

print(*solve())
0