結果
| 問題 | No.3039 配信者 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:43:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 84,556 KB |
| 最終ジャッジ日時 | 2026-07-06 12:04:44 |
| 合計ジャッジ時間 | 5,194 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 14 |
ソースコード
n,h=map(int,input().split())
time=[]
for _ in range(n):
a,b=map(int,input().split())
time.append((a,1))
time.append((b+1,0))
time.sort()
ans=0
cnt=0
for i,j in time:
if j==1:
cnt+=1
ans=max(ans,cnt)
else:
cnt-=1
print(ans)