結果

問題 No.2154 あさかつの参加人数
ユーザー shobonvipshobonvip
提出日時 2022-12-09 21:24:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 450 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 103,040 KB
最終ジャッジ日時 2023-08-04 21:20:09
合計ジャッジ時間 13,036 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 450 ms
102,632 KB
testcase_01 AC 447 ms
102,652 KB
testcase_02 AC 444 ms
102,700 KB
testcase_03 AC 439 ms
103,040 KB
testcase_04 AC 447 ms
102,564 KB
testcase_05 AC 250 ms
77,752 KB
testcase_06 AC 373 ms
88,096 KB
testcase_07 AC 277 ms
92,948 KB
testcase_08 AC 266 ms
94,712 KB
testcase_09 AC 145 ms
88,144 KB
testcase_10 AC 253 ms
91,336 KB
testcase_11 AC 406 ms
99,688 KB
testcase_12 AC 337 ms
91,664 KB
testcase_13 AC 240 ms
83,064 KB
testcase_14 AC 357 ms
91,300 KB
testcase_15 AC 254 ms
94,244 KB
testcase_16 AC 347 ms
93,892 KB
testcase_17 AC 386 ms
91,580 KB
testcase_18 AC 406 ms
95,564 KB
testcase_19 AC 120 ms
79,364 KB
testcase_20 AC 339 ms
95,912 KB
testcase_21 AC 134 ms
86,780 KB
testcase_22 AC 168 ms
96,012 KB
testcase_23 AC 378 ms
95,932 KB
testcase_24 AC 411 ms
98,860 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