結果

問題 No.2092 Conjugation
ユーザー terasaterasa
提出日時 2022-10-07 21:25:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 630 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 87,332 KB
実行使用メモリ 100,208 KB
最終ジャッジ日時 2023-09-02 23:48:44
合計ジャッジ時間 4,435 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
72,644 KB
testcase_01 AC 93 ms
72,640 KB
testcase_02 AC 95 ms
72,736 KB
testcase_03 AC 92 ms
72,624 KB
testcase_04 AC 98 ms
72,872 KB
testcase_05 AC 94 ms
72,648 KB
testcase_06 AC 95 ms
72,600 KB
testcase_07 AC 119 ms
83,592 KB
testcase_08 AC 135 ms
91,780 KB
testcase_09 AC 123 ms
86,052 KB
testcase_10 AC 127 ms
87,364 KB
testcase_11 AC 127 ms
87,076 KB
testcase_12 AC 127 ms
85,592 KB
testcase_13 AC 124 ms
83,644 KB
testcase_14 AC 122 ms
83,840 KB
testcase_15 AC 125 ms
85,104 KB
testcase_16 AC 138 ms
96,064 KB
testcase_17 AC 142 ms
100,208 KB
testcase_18 AC 139 ms
98,592 KB
testcase_19 AC 111 ms
88,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
# import pypyjit
import itertools
import heapq
import math
import bisect
from collections import deque, defaultdict
from functools import lru_cache, cmp_to_key


# for AtCoder Easy test
if __file__ == 'prog.py':
    pass
else:
    sys.setrecursionlimit(10 ** 6)
# pypyjit.set_param('max_unroll_recursion=-1')

input = sys.stdin.readline


def readints(): return map(int, input().split())
def readlist(): return list(readints())
def readstr(): return input()[:-1]


N = int(input())
A = readlist()

S = [0] * (A[0] + 1)
for a in A:
    S[0] += 1
    S[a] -= 1
for i in range(A[0]):
    S[i + 1] += S[i]
print(*S[:A[0]])
0