結果

問題 No.23 技の選択
ユーザー 👑 rin204rin204
提出日時 2022-07-04 13:41:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 5,000 ms
コード長 176 bytes
コンパイル時間 747 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 76,176 KB
最終ジャッジ日時 2023-08-20 20:29:07
合計ジャッジ時間 4,720 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,172 KB
testcase_01 AC 73 ms
71,144 KB
testcase_02 AC 90 ms
71,220 KB
testcase_03 AC 77 ms
75,864 KB
testcase_04 AC 76 ms
75,752 KB
testcase_05 AC 76 ms
75,912 KB
testcase_06 AC 76 ms
75,840 KB
testcase_07 AC 77 ms
76,172 KB
testcase_08 AC 78 ms
75,824 KB
testcase_09 AC 78 ms
75,896 KB
testcase_10 AC 76 ms
76,032 KB
testcase_11 AC 73 ms
71,292 KB
testcase_12 AC 77 ms
75,968 KB
testcase_13 AC 76 ms
75,808 KB
testcase_14 AC 75 ms
75,824 KB
testcase_15 AC 77 ms
75,840 KB
testcase_16 AC 73 ms
71,364 KB
testcase_17 AC 76 ms
76,176 KB
testcase_18 AC 80 ms
75,752 KB
testcase_19 AC 78 ms
75,820 KB
testcase_20 AC 78 ms
75,980 KB
testcase_21 AC 78 ms
75,808 KB
testcase_22 AC 78 ms
75,924 KB
testcase_23 AC 76 ms
75,908 KB
testcase_24 AC 74 ms
71,316 KB
testcase_25 AC 78 ms
75,816 KB
testcase_26 AC 78 ms
75,940 KB
testcase_27 AC 80 ms
76,068 KB
testcase_28 AC 78 ms
75,920 KB
testcase_29 AC 78 ms
76,100 KB
testcase_30 AC 78 ms
76,092 KB
testcase_31 AC 78 ms
75,924 KB
testcase_32 AC 80 ms
75,928 KB
権限があれば一括ダウンロードができます

ソースコード

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