結果

問題 No.23 技の選択
ユーザー ayaoniayaoni
提出日時 2020-12-04 12:49:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 603 bytes
コンパイル時間 328 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 75,960 KB
最終ジャッジ日時 2023-10-13 00:53:08
合計ジャッジ時間 4,510 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,468 KB
testcase_01 AC 71 ms
71,248 KB
testcase_02 AC 72 ms
71,340 KB
testcase_03 AC 83 ms
75,760 KB
testcase_04 AC 74 ms
75,560 KB
testcase_05 AC 76 ms
75,516 KB
testcase_06 AC 76 ms
75,864 KB
testcase_07 AC 75 ms
75,764 KB
testcase_08 AC 75 ms
75,620 KB
testcase_09 AC 81 ms
75,616 KB
testcase_10 WA -
testcase_11 AC 74 ms
71,372 KB
testcase_12 AC 75 ms
75,668 KB
testcase_13 AC 80 ms
75,708 KB
testcase_14 AC 77 ms
75,696 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 81 ms
75,704 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 75 ms
75,568 KB
testcase_21 WA -
testcase_22 AC 75 ms
75,616 KB
testcase_23 AC 75 ms
75,896 KB
testcase_24 AC 75 ms
71,244 KB
testcase_25 AC 77 ms
75,632 KB
testcase_26 AC 78 ms
75,652 KB
testcase_27 AC 77 ms
75,528 KB
testcase_28 AC 75 ms
75,680 KB
testcase_29 AC 76 ms
75,568 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 79 ms
75,960 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回
    if H-A*i+D-1 >= 0:
        ans = min(ans,i+1.5*((H-A*i+D-1)//D))

print(ans)
0