結果

問題 No.2092 Conjugation
ユーザー pitPpitP
提出日時 2022-10-08 08:02:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 101,964 KB
最終ジャッジ日時 2023-09-04 06:06:40
合計ジャッジ時間 4,576 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,260 KB
testcase_01 AC 71 ms
71,344 KB
testcase_02 AC 71 ms
71,276 KB
testcase_03 AC 71 ms
71,272 KB
testcase_04 AC 71 ms
71,356 KB
testcase_05 AC 71 ms
71,340 KB
testcase_06 AC 70 ms
71,328 KB
testcase_07 AC 98 ms
85,964 KB
testcase_08 AC 113 ms
94,868 KB
testcase_09 AC 105 ms
88,848 KB
testcase_10 AC 105 ms
89,816 KB
testcase_11 AC 105 ms
90,008 KB
testcase_12 AC 105 ms
88,272 KB
testcase_13 AC 102 ms
86,500 KB
testcase_14 AC 102 ms
86,556 KB
testcase_15 AC 105 ms
87,928 KB
testcase_16 AC 116 ms
99,160 KB
testcase_17 AC 121 ms
100,172 KB
testcase_18 AC 122 ms
101,964 KB
testcase_19 AC 88 ms
87,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

imos = [0 for _ in range(A[0] + 5)]
for i in range(N):
	imos[1] += 1
	imos[A[i]+1] -= 1

ans = []
wa = 0
for i in range(1,A[0]+1):
	wa += imos[i]
	ans.append(wa)
print(*ans)
0