結果

問題 No.3039 配信者
ユーザー 👑 loop0919
提出日時 2025-02-28 21:47:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 695 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 82,116 KB
実行使用メモリ 84,032 KB
最終ジャッジ日時 2025-02-28 21:47:34
合計ジャッジ時間 8,155 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import accumulate

N, H = map(int, input().split())

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

print(max(accumulate(tl)))
0