結果

問題 No.2092 Conjugation
ユーザー 👑 tamatotamato
提出日時 2022-10-07 21:23:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 792 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 96,564 KB
最終ジャッジ日時 2023-09-02 23:40:57
合計ジャッジ時間 3,449 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,284 KB
testcase_01 AC 69 ms
71,396 KB
testcase_02 AC 68 ms
71,460 KB
testcase_03 AC 69 ms
71,284 KB
testcase_04 AC 70 ms
71,408 KB
testcase_05 AC 70 ms
71,388 KB
testcase_06 AC 69 ms
71,280 KB
testcase_07 AC 91 ms
81,708 KB
testcase_08 AC 106 ms
90,100 KB
testcase_09 AC 96 ms
83,916 KB
testcase_10 AC 99 ms
85,448 KB
testcase_11 AC 101 ms
85,124 KB
testcase_12 AC 97 ms
83,576 KB
testcase_13 AC 93 ms
81,896 KB
testcase_14 AC 94 ms
81,632 KB
testcase_15 AC 97 ms
83,476 KB
testcase_16 AC 111 ms
94,508 KB
testcase_17 AC 112 ms
95,352 KB
testcase_18 AC 112 ms
96,564 KB
testcase_19 AC 84 ms
87,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

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

    M = A[0]
    ans = [0] * (M + 1)
    imos = [0] * (M + 2)
    for a in A:
        imos[1] += 1
        imos[a + 1] -= 1
    for i in range(1, M+1):
        ans[i] = ans[i - 1] + imos[i]
    print(*ans[1:])


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