結果

問題 No.2154 あさかつの参加人数
ユーザー helloprahellopra
提出日時 2022-12-09 22:04:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 439 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 84,736 KB
最終ジャッジ日時 2024-04-22 22:13:04
合計ジャッジ時間 13,085 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 425 ms
84,588 KB
testcase_01 AC 439 ms
84,480 KB
testcase_02 AC 435 ms
84,736 KB
testcase_03 AC 432 ms
84,480 KB
testcase_04 AC 434 ms
84,352 KB
testcase_05 AC 240 ms
76,416 KB
testcase_06 AC 377 ms
80,000 KB
testcase_07 AC 277 ms
81,536 KB
testcase_08 AC 240 ms
82,432 KB
testcase_09 AC 119 ms
80,256 KB
testcase_10 AC 232 ms
81,152 KB
testcase_11 AC 391 ms
83,584 KB
testcase_12 AC 323 ms
81,024 KB
testcase_13 AC 229 ms
77,952 KB
testcase_14 AC 358 ms
80,384 KB
testcase_15 AC 230 ms
81,792 KB
testcase_16 AC 337 ms
81,280 KB
testcase_17 AC 386 ms
80,768 KB
testcase_18 AC 395 ms
82,048 KB
testcase_19 AC 100 ms
77,056 KB
testcase_20 AC 318 ms
82,304 KB
testcase_21 AC 112 ms
79,744 KB
testcase_22 AC 144 ms
83,712 KB
testcase_23 AC 369 ms
82,176 KB
testcase_24 AC 398 ms
83,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
L = [0] * (N+1)
for i in range(M):
	a,b = map(int,input().split())
	a = N-a
	b = N-b
	L[a] += 1
	L[b+1] -= 1

c = 0
ans = []
for i in L[:N]:
	c += i
	print(c)
0