結果

問題 No.2154 あさかつの参加人数
ユーザー shobonvipshobonvip
提出日時 2022-12-09 21:24:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 512 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 101,836 KB
最終ジャッジ日時 2024-04-22 19:30:49
合計ジャッジ時間 13,550 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 500 ms
101,504 KB
testcase_01 AC 505 ms
101,396 KB
testcase_02 AC 498 ms
101,836 KB
testcase_03 AC 512 ms
101,632 KB
testcase_04 AC 505 ms
101,432 KB
testcase_05 AC 232 ms
76,736 KB
testcase_06 AC 431 ms
87,452 KB
testcase_07 AC 292 ms
91,540 KB
testcase_08 AC 279 ms
93,696 KB
testcase_09 AC 130 ms
86,912 KB
testcase_10 AC 270 ms
90,044 KB
testcase_11 AC 431 ms
98,552 KB
testcase_12 AC 367 ms
90,828 KB
testcase_13 AC 247 ms
81,932 KB
testcase_14 AC 391 ms
90,240 KB
testcase_15 AC 264 ms
93,104 KB
testcase_16 AC 375 ms
92,928 KB
testcase_17 AC 417 ms
89,852 KB
testcase_18 AC 438 ms
94,464 KB
testcase_19 AC 96 ms
78,464 KB
testcase_20 AC 370 ms
94,896 KB
testcase_21 AC 120 ms
86,016 KB
testcase_22 AC 167 ms
95,108 KB
testcase_23 AC 421 ms
95,104 KB
testcase_24 AC 455 ms
98,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int,input().split())
v = [0] * (n + 1)
for i in range(m):
	l, r = map(int,input().split())
	v[n-l] += 1
	v[n-r+1] -= 1

for i in range(n):
	v[i+1] += v[i]

print(*v[:-1],sep="\n")
0