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