結果

問題 No.3039 配信者
ユーザー aa a
提出日時 2025-02-28 21:32:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 347 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 82,684 KB
実行使用メモリ 85,360 KB
最終ジャッジ日時 2025-02-28 21:32:55
合計ジャッジ時間 5,219 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import heapq
import itertools
import bisect
import random
import time
from collections import deque
import sys
from cmath import exp,pi
from functools import cmp_to_key
input=sys.stdin.readline

n,h=map(int,input().split())
s=[0]*(h+5)
for i in range(n):
    a,b=map(int,input().split())
    s[a]+=1
    s[b+1]-=1

for i in range(1,len(s)):
    s[i]+=s[i-1]
print(max(s))
0