結果

問題 No.2227 King Kraken's Attack
ユーザー qibqib
提出日時 2023-04-19 01:00:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,532 KB
実行使用メモリ 66,280 KB
最終ジャッジ日時 2024-04-22 02:09:13
合計ジャッジ時間 3,318 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,164 KB
testcase_01 AC 33 ms
52,000 KB
testcase_02 AC 32 ms
52,628 KB
testcase_03 AC 38 ms
60,508 KB
testcase_04 AC 31 ms
51,828 KB
testcase_05 AC 32 ms
52,616 KB
testcase_06 AC 35 ms
53,220 KB
testcase_07 WA -
testcase_08 AC 33 ms
52,624 KB
testcase_09 AC 34 ms
53,896 KB
testcase_10 AC 32 ms
52,576 KB
testcase_11 AC 33 ms
53,444 KB
testcase_12 AC 33 ms
53,872 KB
testcase_13 AC 37 ms
53,080 KB
testcase_14 AC 38 ms
59,144 KB
testcase_15 WA -
testcase_16 AC 48 ms
59,844 KB
testcase_17 AC 54 ms
63,048 KB
testcase_18 AC 39 ms
59,764 KB
testcase_19 AC 45 ms
61,172 KB
testcase_20 AC 48 ms
61,316 KB
testcase_21 AC 52 ms
63,512 KB
testcase_22 AC 35 ms
59,184 KB
testcase_23 AC 34 ms
58,736 KB
testcase_24 AC 47 ms
62,008 KB
testcase_25 WA -
testcase_26 AC 39 ms
59,404 KB
testcase_27 AC 44 ms
61,436 KB
testcase_28 AC 57 ms
65,320 KB
testcase_29 AC 61 ms
63,316 KB
testcase_30 AC 71 ms
66,212 KB
testcase_31 AC 57 ms
64,672 KB
testcase_32 AC 51 ms
64,144 KB
testcase_33 AC 51 ms
64,480 KB
testcase_34 AC 49 ms
63,844 KB
testcase_35 AC 51 ms
66,280 KB
testcase_36 AC 46 ms
62,584 KB
testcase_37 AC 35 ms
59,796 KB
testcase_38 AC 35 ms
59,772 KB
testcase_39 AC 36 ms
59,148 KB
testcase_40 AC 35 ms
58,236 KB
testcase_41 AC 38 ms
59,216 KB
testcase_42 AC 35 ms
58,220 KB
testcase_43 AC 39 ms
57,960 KB
testcase_44 AC 37 ms
60,068 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

print(ans)
0