結果

問題 No.2092 Conjugation
ユーザー june19312june19312
提出日時 2022-10-07 22:12:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 86,868 KB
実行使用メモリ 98,320 KB
最終ジャッジ日時 2023-09-03 12:59:39
合計ジャッジ時間 3,835 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,476 KB
testcase_01 AC 72 ms
71,380 KB
testcase_02 AC 73 ms
71,240 KB
testcase_03 AC 72 ms
71,140 KB
testcase_04 AC 72 ms
71,420 KB
testcase_05 AC 72 ms
71,160 KB
testcase_06 AC 72 ms
71,268 KB
testcase_07 AC 96 ms
80,944 KB
testcase_08 AC 114 ms
89,500 KB
testcase_09 AC 106 ms
83,408 KB
testcase_10 AC 108 ms
84,824 KB
testcase_11 AC 108 ms
84,744 KB
testcase_12 AC 107 ms
82,896 KB
testcase_13 AC 100 ms
81,260 KB
testcase_14 AC 101 ms
80,904 KB
testcase_15 AC 105 ms
82,568 KB
testcase_16 AC 120 ms
94,100 KB
testcase_17 AC 126 ms
98,320 KB
testcase_18 AC 123 ms
96,340 KB
testcase_19 AC 93 ms
87,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = [0]*(A[0]+2)

for i,v in enumerate(A):
    l = 1
    r = v+1
    ans[l]+=1
    ans[r]-=1

for i,v in enumerate(ans):
    if i == 0:
        continue
    
    ans[i] += ans[i-1]

print(*ans[1:A[0]+1])
0