結果

問題 No.2092 Conjugation
ユーザー terasa
提出日時 2022-10-07 21:25:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 630 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 97,152 KB
最終ジャッジ日時 2024-06-12 05:51:53
合計ジャッジ時間 3,379 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

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