結果

問題 No.2227 King Kraken's Attack
ユーザー qibqib
提出日時 2023-04-18 19:38:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 65,920 KB
最終ジャッジ日時 2024-04-21 20:51:18
合計ジャッジ時間 4,077 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
52,096 KB
testcase_01 WA -
testcase_02 AC 37 ms
51,712 KB
testcase_03 AC 44 ms
58,368 KB
testcase_04 WA -
testcase_05 AC 37 ms
51,840 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 39 ms
52,736 KB
testcase_10 AC 38 ms
52,352 KB
testcase_11 AC 38 ms
52,864 KB
testcase_12 AC 38 ms
52,608 KB
testcase_13 AC 39 ms
52,480 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 60 ms
60,544 KB
testcase_18 AC 48 ms
58,624 KB
testcase_19 AC 69 ms
61,952 KB
testcase_20 AC 70 ms
61,696 KB
testcase_21 AC 69 ms
62,080 KB
testcase_22 AC 46 ms
59,136 KB
testcase_23 AC 47 ms
60,416 KB
testcase_24 WA -
testcase_25 AC 52 ms
59,264 KB
testcase_26 WA -
testcase_27 AC 52 ms
59,904 KB
testcase_28 AC 74 ms
63,872 KB
testcase_29 AC 75 ms
64,000 KB
testcase_30 AC 77 ms
65,664 KB
testcase_31 AC 72 ms
63,744 KB
testcase_32 AC 71 ms
65,920 KB
testcase_33 AC 63 ms
64,512 KB
testcase_34 AC 61 ms
63,872 KB
testcase_35 AC 71 ms
64,896 KB
testcase_36 AC 61 ms
62,848 KB
testcase_37 AC 44 ms
58,112 KB
testcase_38 AC 41 ms
58,368 KB
testcase_39 AC 43 ms
58,240 KB
testcase_40 AC 43 ms
58,624 KB
testcase_41 AC 46 ms
58,368 KB
testcase_42 AC 43 ms
58,496 KB
testcase_43 AC 45 ms
58,496 KB
testcase_44 AC 47 ms
58,368 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = w
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