結果

問題 No.23 技の選択
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-10-11 04:23:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 86,912 KB
実行使用メモリ 78,068 KB
最終ジャッジ日時 2023-09-07 06:44:25
合計ジャッジ時間 6,877 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
73,168 KB
testcase_01 AC 115 ms
72,864 KB
testcase_02 AC 115 ms
72,976 KB
testcase_03 AC 130 ms
77,664 KB
testcase_04 AC 123 ms
77,632 KB
testcase_05 AC 118 ms
77,848 KB
testcase_06 AC 122 ms
77,676 KB
testcase_07 AC 119 ms
77,808 KB
testcase_08 AC 126 ms
78,012 KB
testcase_09 AC 121 ms
77,696 KB
testcase_10 AC 122 ms
77,812 KB
testcase_11 AC 114 ms
72,928 KB
testcase_12 AC 124 ms
77,808 KB
testcase_13 AC 118 ms
77,720 KB
testcase_14 AC 113 ms
77,760 KB
testcase_15 AC 117 ms
77,496 KB
testcase_16 AC 113 ms
72,832 KB
testcase_17 AC 114 ms
77,848 KB
testcase_18 AC 121 ms
77,760 KB
testcase_19 AC 122 ms
77,832 KB
testcase_20 AC 120 ms
77,900 KB
testcase_21 AC 119 ms
77,760 KB
testcase_22 AC 122 ms
77,672 KB
testcase_23 AC 118 ms
77,704 KB
testcase_24 AC 116 ms
72,920 KB
testcase_25 AC 123 ms
78,068 KB
testcase_26 AC 121 ms
77,792 KB
testcase_27 AC 122 ms
77,808 KB
testcase_28 AC 120 ms
77,976 KB
testcase_29 AC 123 ms
77,656 KB
testcase_30 AC 122 ms
77,904 KB
testcase_31 AC 125 ms
77,640 KB
testcase_32 AC 120 ms
77,916 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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])
0