結果
| 問題 | No.3039 配信者 |
| コンテスト | |
| ユーザー |
SourCreamOnion
|
| 提出日時 | 2025-02-28 22:22:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 506 ms / 2,000 ms |
| コード長 | 597 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 158,876 KB |
| 最終ジャッジ日時 | 2026-07-06 12:47:40 |
| 合計ジャッジ時間 | 7,533 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 |
ソースコード
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))))
SourCreamOnion