結果

問題 No.23 技の選択
ユーザー 👑 rin204
提出日時 2022-07-04 13:41:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 176 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 60,024 KB
最終ジャッジ日時 2024-12-14 02:50:02
合計ジャッジ時間 3,062 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

h, a, d = map(int, input().split())
ans = 1 << 30
for i in range(h + 1):
    j = (h - a * i + d - 1) // d
    if j < 0:
        j = 0
    ans = min(ans, i + j * 1.5)
print(ans)
0