結果
| 問題 |
No.23 技の選択
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-10-21 01:32:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 412 ms |
| コンパイル使用メモリ | 82,360 KB |
| 実行使用メモリ | 91,292 KB |
| 最終ジャッジ日時 | 2024-10-21 01:32:36 |
| 合計ジャッジ時間 | 7,407 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 29 |
ソースコード
from functools import 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)
norioc