結果
問題 | No.3039 配信者 |
ユーザー |
|
提出日時 | 2025-02-28 21:43:02 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 82,164 KB |
実行使用メモリ | 282,924 KB |
最終ジャッジ日時 | 2025-02-28 21:43:08 |
合計ジャッジ時間 | 4,715 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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=0cnt=0for i,j in time:if j==1:cnt+=1ans=max(ans,cnt)else:cnt-=1print(ans)