結果
| 問題 | No.3039 配信者 |
| コンテスト | |
| ユーザー |
naniwazu
|
| 提出日時 | 2025-02-03 16:19:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 307 bytes |
| 記録 | |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 366,608 KB |
| 最終ジャッジ日時 | 2026-06-27 08:20:55 |
| 合計ジャッジ時間 | 5,538 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | TLE * 1 -- * 14 |
ソースコード
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