結果

問題 No.2092 Conjugation
ユーザー kyskys
提出日時 2022-10-07 21:22:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 820 bytes
コンパイル時間 1,267 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 101,776 KB
最終ジャッジ日時 2023-09-02 23:38:30
合計ジャッジ時間 4,603 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,488 KB
testcase_01 AC 66 ms
71,428 KB
testcase_02 AC 67 ms
71,176 KB
testcase_03 AC 68 ms
71,340 KB
testcase_04 AC 69 ms
71,472 KB
testcase_05 AC 69 ms
71,532 KB
testcase_06 AC 68 ms
71,380 KB
testcase_07 AC 109 ms
87,156 KB
testcase_08 AC 108 ms
95,244 KB
testcase_09 AC 111 ms
89,556 KB
testcase_10 AC 110 ms
90,644 KB
testcase_11 AC 107 ms
90,644 KB
testcase_12 AC 102 ms
88,888 KB
testcase_13 AC 95 ms
87,580 KB
testcase_14 AC 96 ms
87,512 KB
testcase_15 AC 101 ms
88,812 KB
testcase_16 AC 115 ms
99,692 KB
testcase_17 AC 115 ms
100,780 KB
testcase_18 AC 116 ms
101,776 KB
testcase_19 AC 84 ms
86,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate


def main():
    from sys import stdin, setrecursionlimit
    # setrecursionlimit(1000000)
    input = stdin.readline
    def iinput(): return int(input())
    def sinput(): return input().rstrip()
    def i0input(): return int(input()) - 1
    def linput(): return list(input().split())
    def liinput(): return list(map(int, input().split()))
    def miinput(): return map(int, input().split())
    def li0input(): return list(map(lambda x: int(x) - 1, input().split()))
    def mi0input(): return map(lambda x: int(x) - 1, input().split())
    INF = 1000000000000000000
    MOD = 1000000007

    N = iinput()
    A = liinput()

    imos = [0] * (A[0] + 1)
    for a in A:
        imos[0] += 1
        imos[a] -= 1
    
    imos = list(accumulate(imos))
    print(*imos[:-1])

main()
0