結果
問題 | No.23 技の選択 |
ユーザー | Navier_Boltzmann |
提出日時 | 2022-10-11 04:23:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 70 ms / 5,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 81,800 KB |
実行使用メモリ | 65,408 KB |
最終ジャッジ日時 | 2024-06-25 01:05:03 |
合計ジャッジ時間 | 3,499 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 33 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline H,A,D = map(int,input().split()) E = [0]*(H+1) for i in range(1,H+1): E[i] = min(1+E[max(0,i-A)],1.5+E[max(0,i-D)]) print(E[H])