結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 435 ms
84,352 KB
testcase_01 AC 437 ms
84,864 KB
testcase_02 AC 434 ms
84,736 KB
testcase_03 AC 433 ms
84,480 KB
testcase_04 AC 436 ms
84,736 KB
testcase_05 AC 239 ms
76,672 KB
testcase_06 AC 376 ms
79,872 KB
testcase_07 AC 253 ms
81,792 KB
testcase_08 AC 242 ms
82,176 KB
testcase_09 AC 122 ms
80,640 KB
testcase_10 AC 234 ms
81,152 KB
testcase_11 AC 396 ms
83,584 KB
testcase_12 AC 329 ms
81,152 KB
testcase_13 AC 232 ms
78,208 KB
testcase_14 AC 360 ms
80,896 KB
testcase_15 AC 232 ms
82,048 KB
testcase_16 AC 339 ms
81,280 KB
testcase_17 AC 385 ms
80,640 KB
testcase_18 AC 395 ms
82,304 KB
testcase_19 AC 103 ms
77,056 KB
testcase_20 AC 332 ms
82,560 KB
testcase_21 AC 114 ms
80,384 KB
testcase_22 AC 150 ms
83,712 KB
testcase_23 AC 372 ms
82,304 KB
testcase_24 AC 398 ms
83,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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