結果
| 問題 |
No.3039 配信者
|
| コンテスト | |
| ユーザー |
naniwazu
|
| 提出日時 | 2025-02-03 16:19:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 82,164 KB |
| 実行使用メモリ | 366,232 KB |
| 最終ジャッジ日時 | 2025-02-03 16:19:47 |
| 合計ジャッジ時間 | 37,736 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 TLE * 11 |
ソースコード
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)
naniwazu