結果

問題 No.2092 Conjugation
ユーザー Akijin_007Akijin_007
提出日時 2022-10-07 22:12:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 985 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 93,492 KB
最終ジャッジ日時 2023-09-03 12:57:38
合計ジャッジ時間 3,876 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,060 KB
testcase_01 AC 72 ms
71,320 KB
testcase_02 AC 72 ms
71,260 KB
testcase_03 AC 72 ms
71,384 KB
testcase_04 AC 72 ms
71,604 KB
testcase_05 AC 72 ms
71,272 KB
testcase_06 AC 72 ms
71,432 KB
testcase_07 AC 82 ms
78,332 KB
testcase_08 AC 95 ms
86,756 KB
testcase_09 AC 89 ms
81,424 KB
testcase_10 AC 90 ms
82,208 KB
testcase_11 AC 91 ms
82,440 KB
testcase_12 AC 90 ms
80,672 KB
testcase_13 AC 88 ms
78,864 KB
testcase_14 AC 87 ms
78,932 KB
testcase_15 AC 90 ms
80,320 KB
testcase_16 AC 100 ms
91,128 KB
testcase_17 AC 102 ms
93,492 KB
testcase_18 AC 102 ms
92,868 KB
testcase_19 AC 89 ms
87,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#int(input())
#map(int, input().split())
#list(map(int, input().split()))

N = int(input())
A = list(map(int, input().split()))
b = A[0]
ans = [0] * b

for i in range(N):
    ans[A[i]-1] += 1

# print(ans)

for i in range(b-1):
    ans[b-2-i] += ans[b-1-i]

print(" ".join([str(_) for _ in ans]))


0