結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,644 KB
testcase_01 AC 31 ms
53,552 KB
testcase_02 WA -
testcase_03 AC 41 ms
60,116 KB
testcase_04 AC 38 ms
52,972 KB
testcase_05 WA -
testcase_06 AC 33 ms
52,468 KB
testcase_07 AC 35 ms
53,968 KB
testcase_08 AC 35 ms
53,084 KB
testcase_09 AC 37 ms
53,912 KB
testcase_10 WA -
testcase_11 AC 37 ms
54,172 KB
testcase_12 AC 34 ms
53,568 KB
testcase_13 AC 34 ms
53,444 KB
testcase_14 AC 40 ms
59,816 KB
testcase_15 AC 39 ms
58,972 KB
testcase_16 AC 49 ms
60,200 KB
testcase_17 AC 53 ms
63,572 KB
testcase_18 WA -
testcase_19 AC 51 ms
61,040 KB
testcase_20 AC 48 ms
61,608 KB
testcase_21 AC 54 ms
62,604 KB
testcase_22 AC 37 ms
59,432 KB
testcase_23 AC 36 ms
58,212 KB
testcase_24 AC 50 ms
62,888 KB
testcase_25 WA -
testcase_26 AC 40 ms
59,892 KB
testcase_27 WA -
testcase_28 AC 55 ms
62,776 KB
testcase_29 AC 55 ms
62,524 KB
testcase_30 AC 73 ms
67,740 KB
testcase_31 AC 53 ms
62,592 KB
testcase_32 AC 48 ms
61,568 KB
testcase_33 AC 48 ms
62,464 KB
testcase_34 AC 49 ms
62,336 KB
testcase_35 AC 50 ms
62,848 KB
testcase_36 AC 47 ms
62,080 KB
testcase_37 AC 37 ms
58,496 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 37 ms
58,368 KB
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 AC 39 ms
58,484 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = (h - (ka + kb) // w + la - 1) // la + (w - (ka + kb) // h + lb - 1) // lb
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