結果
| 問題 | No.3099 Parentheses Decomposition |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 18:27:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 585 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 95,848 KB |
| 実行使用メモリ | 91,264 KB |
| 最終ジャッジ日時 | 2026-07-11 19:37:07 |
| 合計ジャッジ時間 | 5,751 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 20 |
ソースコード
T, S, D = map(int, input().split())
travel_time = D / S
start = T
end = start + travel_time
total = 0.0
k = 0
while True:
night_start = 18 + 24 * k
night_end = night_start + 12 # 18:00 to 06:00 next day (12 hours)
overlap_start = max(start, night_start)
overlap_end = min(end, night_end)
if overlap_start < overlap_end:
total += overlap_end - overlap_start
# Check next night period
next_k = k + 1
next_night_start = 18 + 24 * next_k
if next_night_start >= end:
break
k = next_k
print("{0:.15f}".format(total))
gew1fw