結果

問題 No.23 技の選択
ユーザー ayaoniayaoni
提出日時 2020-12-04 12:57:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 583 bytes
コンパイル時間 913 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 76,312 KB
最終ジャッジ日時 2023-10-13 01:00:43
合計ジャッジ時間 4,414 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,420 KB
testcase_01 AC 71 ms
71,392 KB
testcase_02 AC 72 ms
71,324 KB
testcase_03 AC 83 ms
76,268 KB
testcase_04 AC 75 ms
76,192 KB
testcase_05 AC 77 ms
76,020 KB
testcase_06 AC 77 ms
76,092 KB
testcase_07 AC 76 ms
76,044 KB
testcase_08 AC 76 ms
76,192 KB
testcase_09 AC 74 ms
75,936 KB
testcase_10 AC 73 ms
76,012 KB
testcase_11 AC 70 ms
71,636 KB
testcase_12 AC 76 ms
76,152 KB
testcase_13 AC 76 ms
76,020 KB
testcase_14 AC 76 ms
76,072 KB
testcase_15 AC 79 ms
76,132 KB
testcase_16 AC 73 ms
71,492 KB
testcase_17 AC 78 ms
75,976 KB
testcase_18 AC 78 ms
76,208 KB
testcase_19 AC 79 ms
76,140 KB
testcase_20 AC 77 ms
76,012 KB
testcase_21 AC 78 ms
76,140 KB
testcase_22 AC 78 ms
75,956 KB
testcase_23 AC 76 ms
76,008 KB
testcase_24 AC 73 ms
71,352 KB
testcase_25 AC 78 ms
76,096 KB
testcase_26 AC 77 ms
76,092 KB
testcase_27 AC 77 ms
76,312 KB
testcase_28 AC 79 ms
76,184 KB
testcase_29 AC 77 ms
75,916 KB
testcase_30 AC 76 ms
75,964 KB
testcase_31 AC 76 ms
76,048 KB
testcase_32 AC 76 ms
76,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


H,A,D = MI()
ans = 10**18
for i in range(H+1):  # 通常攻撃がi回
    ans = min(ans,i+1.5*(max(0,(H-A*i+D-1)//D)))

print(ans)
0