結果
問題 |
No.3099 Parentheses Decomposition
|
ユーザー |
![]() |
提出日時 | 2025-04-15 21:13:19 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 435 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 81,596 KB |
実行使用メモリ | 66,912 KB |
最終ジャッジ日時 | 2025-04-15 21:19:30 |
合計ジャッジ時間 | 2,268 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 4 |
other | RE * 20 |
ソースコード
import math T, S, D = map(int, input().split()) time = D / S start = T end = start + time total = 0.0 d_min = math.floor((start - 30) / 24) d_max = math.ceil((end - 18) / 24) for d in range(d_min, d_max + 1): s_night = 18 + 24 * d e_night = 30 + 24 * d overlap_start = max(start, s_night) overlap_end = min(end, e_night) if overlap_start < overlap_end: total += overlap_end - overlap_start print(total)