結果
問題 |
No.3039 配信者
|
ユーザー |
👑 ![]() |
提出日時 | 2025-02-28 23:15:54 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 283,060 KB |
最終ジャッジ日時 | 2025-02-28 23:15:59 |
合計ジャッジ時間 | 4,611 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 14 |
ソースコード
N,H = map(int,input().split()) lis = [] for i in range(N): A,B = map(int,input().split()) lis.append( (A,0) ) lis.append( (B,1) ) lis.sort() cnt = 0 ans = 0 for _,s in lis: if s == 0: cnt += 1 else: cnt -= 1 ans = max(ans , cnt) print (ans)