結果

問題 No.3039 配信者
ユーザー さわーくりーむおにおん🧅
提出日時 2025-02-28 22:22:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 667 ms / 2,000 ms
コード長 597 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 82,472 KB
実行使用メモリ 151,136 KB
最終ジャッジ日時 2025-02-28 22:22:20
合計ジャッジ時間 8,052 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math

LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())


N,H=MI()

T=[0]*(H+1)

for i in range(N):
    a,b=MI()
    T[a]+=1
    T[b+1]-=1
print(max(list(accumulate(T))))
0