結果

問題 No.23 技の選択
ユーザー konchanksukonchanksu
提出日時 2020-05-01 17:13:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-08-25 22:49:50
合計ジャッジ時間 2,223 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,896 KB
testcase_01 AC 13 ms
7,812 KB
testcase_02 AC 13 ms
7,812 KB
testcase_03 AC 13 ms
7,852 KB
testcase_04 AC 13 ms
7,772 KB
testcase_05 AC 13 ms
7,920 KB
testcase_06 AC 13 ms
7,900 KB
testcase_07 AC 12 ms
7,852 KB
testcase_08 AC 13 ms
7,804 KB
testcase_09 AC 16 ms
7,808 KB
testcase_10 WA -
testcase_11 AC 13 ms
7,804 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 13 ms
7,900 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 13 ms
7,864 KB
testcase_26 AC 12 ms
7,856 KB
testcase_27 AC 13 ms
7,924 KB
testcase_28 AC 13 ms
7,828 KB
testcase_29 AC 14 ms
7,824 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

H, A, D = map(int, input().split())

ans = float('inf')
for i in range(0, H // A + 1):
    tmp = H - A * i
    ans = min(ans, i + (tmp // D + (1 if tmp % D else 0)) * (3 / 2))

print(ans)
0