結果
| 問題 |
No.3099 Parentheses Decomposition
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 21:01:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 396 bytes |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 82,104 KB |
| 実行使用メモリ | 67,292 KB |
| 最終ジャッジ日時 | 2025-04-15 21:06:31 |
| 合計ジャッジ時間 | 2,727 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 20 |
ソースコード
import math
T, S, D = map(int, input().split())
t = D / S
s = T
e = s + t
k_min = math.floor((s - 30) / 24) + 1
k_max = math.floor((e - 18) / 24)
total = 0.0
for k in range(k_min, k_max + 1):
L_k = 18 + 24 * k
R_k = 30 + 24 * k
overlap_start = max(s, L_k)
overlap_end = min(e, R_k)
if overlap_start < overlap_end:
total += overlap_end - overlap_start
print(total)
lam6er