結果
| 問題 | No.23 技の選択 |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-10-21 01:32:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 463 ms |
| コンパイル使用メモリ | 85,148 KB |
| 実行使用メモリ | 84,460 KB |
| 最終ジャッジ日時 | 2026-05-05 17:50:32 |
| 合計ジャッジ時間 | 2,707 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
norioc