結果
問題 |
No.3099 Parentheses Decomposition
|
ユーザー |
![]() |
提出日時 | 2025-04-16 15:24:36 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,144 KB |
実行使用メモリ | 67,556 KB |
最終ジャッジ日時 | 2025-04-16 15:25:12 |
合計ジャッジ時間 | 2,267 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 20 |
ソースコード
import math T, S, D = map(int, input().split()) H = D / S start = T end = start + H total = 0.0 k_min = math.floor((start - 30) / 24) k_max = math.ceil((end - 18) / 24) for k in range(k_min, k_max + 1): night_start = 18 + 24 * k night_end = 30 + 24 * k overlap_start = max(start, night_start) overlap_end = min(end, night_end) if overlap_start < overlap_end: total += overlap_end - overlap_start print("{0:.15f}".format(total))