結果

問題 No.23 技の選択
ユーザー lloyzlloyz
提出日時 2022-03-11 20:43:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-10-14 05:09:58
合計ジャッジ時間 4,762 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,536 KB
testcase_01 AC 75 ms
71,324 KB
testcase_02 AC 74 ms
71,056 KB
testcase_03 AC 75 ms
71,220 KB
testcase_04 AC 74 ms
71,324 KB
testcase_05 AC 75 ms
71,588 KB
testcase_06 AC 73 ms
71,412 KB
testcase_07 AC 74 ms
71,412 KB
testcase_08 AC 72 ms
71,436 KB
testcase_09 AC 75 ms
71,196 KB
testcase_10 AC 73 ms
71,464 KB
testcase_11 AC 75 ms
71,660 KB
testcase_12 WA -
testcase_13 AC 73 ms
71,284 KB
testcase_14 AC 73 ms
71,392 KB
testcase_15 AC 72 ms
71,392 KB
testcase_16 AC 74 ms
71,248 KB
testcase_17 AC 76 ms
71,172 KB
testcase_18 AC 74 ms
71,252 KB
testcase_19 AC 75 ms
71,384 KB
testcase_20 WA -
testcase_21 AC 74 ms
71,552 KB
testcase_22 AC 74 ms
71,568 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 73 ms
71,248 KB
testcase_26 AC 72 ms
71,456 KB
testcase_27 AC 74 ms
71,272 KB
testcase_28 AC 73 ms
71,236 KB
testcase_29 AC 74 ms
71,316 KB
testcase_30 AC 74 ms
71,152 KB
testcase_31 AC 73 ms
71,288 KB
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

h, a, d = map(int, input().split())

ans = 10**18
if a >= d:
    ans = (h + a - 1) // a
else:
    cnt = 0
    while h >= 0:
        ans = min(ans, cnt + ((h + d - 1) // d) * 1.5)
        h -= a
        cnt += 1
print(ans)
0