結果

問題 No.23 技の選択
ユーザー ayaoniayaoni
提出日時 2020-12-04 12:31:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 611 bytes
コンパイル時間 821 ms
コンパイル使用メモリ 87,164 KB
実行使用メモリ 71,600 KB
最終ジャッジ日時 2023-10-13 00:34:31
合計ジャッジ時間 4,801 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,288 KB
testcase_01 AC 72 ms
71,216 KB
testcase_02 AC 71 ms
71,396 KB
testcase_03 AC 71 ms
71,348 KB
testcase_04 AC 73 ms
71,356 KB
testcase_05 AC 70 ms
71,216 KB
testcase_06 AC 70 ms
71,448 KB
testcase_07 AC 72 ms
71,580 KB
testcase_08 AC 71 ms
71,364 KB
testcase_09 AC 71 ms
71,368 KB
testcase_10 WA -
testcase_11 AC 70 ms
71,384 KB
testcase_12 AC 70 ms
71,360 KB
testcase_13 AC 69 ms
71,556 KB
testcase_14 AC 69 ms
71,240 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 71 ms
71,524 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 72 ms
71,148 KB
testcase_21 WA -
testcase_22 AC 70 ms
71,264 KB
testcase_23 AC 72 ms
71,376 KB
testcase_24 AC 71 ms
71,312 KB
testcase_25 AC 71 ms
71,516 KB
testcase_26 AC 70 ms
71,492 KB
testcase_27 AC 73 ms
71,352 KB
testcase_28 AC 71 ms
71,196 KB
testcase_29 AC 72 ms
71,600 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 72 ms
71,560 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 A*(i-1) >= H:
        break
    ans = min(ans,i+1.5*((H-A*i+D-1)//D))

print(ans)
0