結果

問題 No.2227 King Kraken's Attack
ユーザー lloyzlloyz
提出日時 2023-03-18 00:08:09
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 230 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 64,692 KB
最終ジャッジ日時 2024-04-10 09:51:53
合計ジャッジ時間 3,472 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,992 KB
testcase_01 AC 35 ms
52,124 KB
testcase_02 AC 34 ms
51,944 KB
testcase_03 AC 41 ms
58,960 KB
testcase_04 AC 35 ms
52,956 KB
testcase_05 AC 34 ms
52,628 KB
testcase_06 AC 36 ms
52,672 KB
testcase_07 AC 34 ms
53,276 KB
testcase_08 AC 37 ms
53,556 KB
testcase_09 AC 37 ms
52,984 KB
testcase_10 AC 36 ms
52,888 KB
testcase_11 AC 37 ms
54,412 KB
testcase_12 AC 37 ms
53,296 KB
testcase_13 AC 35 ms
52,892 KB
testcase_14 AC 39 ms
59,128 KB
testcase_15 AC 41 ms
57,984 KB
testcase_16 AC 46 ms
59,576 KB
testcase_17 AC 58 ms
61,292 KB
testcase_18 AC 46 ms
58,880 KB
testcase_19 AC 59 ms
60,848 KB
testcase_20 AC 62 ms
61,868 KB
testcase_21 AC 63 ms
61,692 KB
testcase_22 AC 43 ms
59,656 KB
testcase_23 AC 43 ms
60,832 KB
testcase_24 AC 52 ms
61,724 KB
testcase_25 AC 49 ms
60,852 KB
testcase_26 AC 41 ms
58,448 KB
testcase_27 AC 48 ms
60,132 KB
testcase_28 AC 68 ms
63,796 KB
testcase_29 AC 69 ms
62,784 KB
testcase_30 AC 69 ms
64,656 KB
testcase_31 AC 65 ms
64,224 KB
testcase_32 AC 61 ms
63,352 KB
testcase_33 AC 59 ms
64,692 KB
testcase_34 AC 53 ms
64,488 KB
testcase_35 AC 62 ms
63,252 KB
testcase_36 AC 56 ms
61,816 KB
testcase_37 AC 43 ms
59,980 KB
testcase_38 AC 41 ms
58,760 KB
testcase_39 AC 41 ms
60,112 KB
testcase_40 AC 42 ms
58,572 KB
testcase_41 AC 45 ms
59,036 KB
testcase_42 AC 42 ms
58,584 KB
testcase_43 AC 41 ms
59,300 KB
testcase_44 AC 43 ms
59,404 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

h, w, la, lb, ka, kb = map(int, input().split())

ans = 1 << 60
b = w
for a in range(h + 1):
    while b >= 0 and min(h, a * la) * min(w, b * lb) + a * ka + b * kb >= h * w:
        ans = min(ans, a + b)
        b -= 1
print(ans)
0