結果

問題 No.2154 あさかつの参加人数
ユーザー KudeKude
提出日時 2022-12-09 21:27:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 477 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 101,888 KB
最終ジャッジ日時 2024-04-22 20:21:24
合計ジャッジ時間 13,064 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 477 ms
101,888 KB
testcase_01 AC 462 ms
101,376 KB
testcase_02 AC 464 ms
101,504 KB
testcase_03 AC 463 ms
101,760 KB
testcase_04 AC 462 ms
101,632 KB
testcase_05 AC 239 ms
76,544 KB
testcase_06 AC 390 ms
87,680 KB
testcase_07 AC 269 ms
91,776 KB
testcase_08 AC 262 ms
93,952 KB
testcase_09 AC 131 ms
87,168 KB
testcase_10 AC 253 ms
89,984 KB
testcase_11 AC 413 ms
98,816 KB
testcase_12 AC 353 ms
91,392 KB
testcase_13 AC 233 ms
82,304 KB
testcase_14 AC 373 ms
89,984 KB
testcase_15 AC 252 ms
93,312 KB
testcase_16 AC 360 ms
93,184 KB
testcase_17 AC 404 ms
90,112 KB
testcase_18 AC 414 ms
94,976 KB
testcase_19 AC 102 ms
78,848 KB
testcase_20 AC 353 ms
95,104 KB
testcase_21 AC 119 ms
85,888 KB
testcase_22 AC 163 ms
95,104 KB
testcase_23 AC 391 ms
95,104 KB
testcase_24 AC 429 ms
98,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
d = [0] * (n + 1)
for _ in range(m):
    l, r = map(int, input().split())
    d[n - l] += 1
    d[n - (r - 1)] -= 1
for i in range(n):
    d[i+1] += d[i]
print(*d[:n], sep='\n')
0