結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,476 KB
testcase_01 AC 36 ms
52,272 KB
testcase_02 AC 35 ms
52,204 KB
testcase_03 AC 39 ms
59,660 KB
testcase_04 AC 34 ms
53,488 KB
testcase_05 AC 35 ms
53,420 KB
testcase_06 AC 36 ms
52,492 KB
testcase_07 AC 35 ms
54,300 KB
testcase_08 AC 37 ms
52,680 KB
testcase_09 AC 35 ms
52,836 KB
testcase_10 AC 36 ms
52,956 KB
testcase_11 AC 36 ms
53,288 KB
testcase_12 AC 36 ms
53,132 KB
testcase_13 AC 37 ms
52,836 KB
testcase_14 AC 42 ms
58,376 KB
testcase_15 AC 42 ms
58,096 KB
testcase_16 AC 48 ms
60,052 KB
testcase_17 AC 57 ms
61,828 KB
testcase_18 AC 45 ms
59,884 KB
testcase_19 AC 62 ms
61,060 KB
testcase_20 AC 62 ms
60,768 KB
testcase_21 AC 62 ms
62,164 KB
testcase_22 AC 45 ms
59,952 KB
testcase_23 AC 43 ms
61,888 KB
testcase_24 AC 52 ms
61,500 KB
testcase_25 AC 48 ms
60,156 KB
testcase_26 AC 41 ms
58,156 KB
testcase_27 AC 49 ms
60,344 KB
testcase_28 AC 67 ms
63,584 KB
testcase_29 AC 65 ms
62,980 KB
testcase_30 AC 69 ms
66,100 KB
testcase_31 AC 66 ms
63,500 KB
testcase_32 AC 62 ms
64,148 KB
testcase_33 AC 59 ms
64,308 KB
testcase_34 AC 53 ms
63,724 KB
testcase_35 AC 60 ms
64,616 KB
testcase_36 AC 55 ms
62,524 KB
testcase_37 AC 44 ms
58,624 KB
testcase_38 AC 40 ms
58,912 KB
testcase_39 AC 40 ms
59,720 KB
testcase_40 AC 40 ms
58,496 KB
testcase_41 AC 44 ms
58,972 KB
testcase_42 AC 42 ms
59,856 KB
testcase_43 AC 42 ms
58,992 KB
testcase_44 AC 45 ms
59,172 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