結果
| 問題 | No.23 技の選択 | 
| コンテスト | |
| ユーザー |  norioc | 
| 提出日時 | 2024-10-21 01:32:57 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 265 bytes | 
| コンパイル時間 | 632 ms | 
| コンパイル使用メモリ | 82,160 KB | 
| 実行使用メモリ | 78,584 KB | 
| 最終ジャッジ日時 | 2024-10-21 01:33:01 | 
| 合計ジャッジ時間 | 3,571 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 32 RE * 1 | 
ソースコード
from functools import cache
@cache
def f(h) -> float:
    if h <= 0: return 0
    # 通常攻撃
    res = f(h - A) + 1
    # 必殺技
    res = min(res, f(h - D) + 3/2)
    return res
INF = 1 << 60
H, A, D = map(int, input().split())
ans = f(H)
print(ans)
            
            
            
        