結果
問題 |
No.3039 配信者
|
ユーザー |
![]() |
提出日時 | 2025-02-03 16:20:32 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 579 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 330,916 KB |
最終ジャッジ日時 | 2025-02-03 16:21:09 |
合計ジャッジ時間 | 36,214 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 TLE * 11 |
ソースコード
import sys input = sys.stdin.buffer.readline N, H = map(int, input().split()) streams = [] for _ in range(N): A, B = map(int, input().split()) streams.append((A, 1)) streams.append((B + 0.5, -1)) streams.sort(key=lambda x: x[0]) watching = 0 ans = 0 for time, diff in streams: watching += diff ans = max(ans, watching) print(ans)