結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,712 KB
testcase_01 AC 37 ms
51,456 KB
testcase_02 WA -
testcase_03 AC 42 ms
58,752 KB
testcase_04 AC 34 ms
51,712 KB
testcase_05 WA -
testcase_06 AC 39 ms
52,096 KB
testcase_07 AC 38 ms
52,096 KB
testcase_08 AC 38 ms
52,608 KB
testcase_09 AC 38 ms
52,992 KB
testcase_10 WA -
testcase_11 AC 38 ms
52,352 KB
testcase_12 AC 37 ms
52,736 KB
testcase_13 AC 38 ms
52,608 KB
testcase_14 AC 45 ms
58,624 KB
testcase_15 AC 44 ms
58,112 KB
testcase_16 AC 53 ms
58,240 KB
testcase_17 AC 61 ms
61,824 KB
testcase_18 WA -
testcase_19 AC 58 ms
60,672 KB
testcase_20 AC 55 ms
60,928 KB
testcase_21 AC 59 ms
61,184 KB
testcase_22 AC 46 ms
57,856 KB
testcase_23 AC 41 ms
57,856 KB
testcase_24 AC 60 ms
61,696 KB
testcase_25 WA -
testcase_26 AC 44 ms
58,624 KB
testcase_27 AC 51 ms
59,904 KB
testcase_28 AC 63 ms
62,208 KB
testcase_29 AC 62 ms
62,208 KB
testcase_30 AC 82 ms
67,712 KB
testcase_31 AC 61 ms
62,312 KB
testcase_32 AC 54 ms
61,440 KB
testcase_33 AC 56 ms
62,208 KB
testcase_34 AC 54 ms
62,464 KB
testcase_35 AC 57 ms
62,848 KB
testcase_36 AC 54 ms
61,824 KB
testcase_37 AC 41 ms
58,112 KB
testcase_38 AC 42 ms
58,240 KB
testcase_39 AC 43 ms
57,984 KB
testcase_40 AC 42 ms
58,240 KB
testcase_41 AC 44 ms
57,856 KB
testcase_42 AC 41 ms
58,240 KB
testcase_43 AC 41 ms
58,240 KB
testcase_44 AC 42 ms
57,984 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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