結果

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

ソースコード

diff #

from itertools import accumulate
n, h = map(int, input().split())
d = [0] * (10 ** 6 + 1)
for _ in range(n):
    a, b = map(int, input().split())
    d[a] += 1
    d[b+1] -= 1
ans = max(accumulate(d))
print(ans)
0