結果

問題 No.2227 King Kraken's Attack
ユーザー ニックネームニックネーム
提出日時 2023-02-24 22:16:39
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 261 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 82,856 KB
実行使用メモリ 69,716 KB
最終ジャッジ日時 2024-04-10 09:26:57
合計ジャッジ時間 8,288 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
52,700 KB
testcase_01 AC 33 ms
53,144 KB
testcase_02 AC 35 ms
52,372 KB
testcase_03 AC 49 ms
62,876 KB
testcase_04 AC 34 ms
52,704 KB
testcase_05 AC 35 ms
52,276 KB
testcase_06 AC 41 ms
60,036 KB
testcase_07 AC 44 ms
61,624 KB
testcase_08 AC 41 ms
60,320 KB
testcase_09 AC 47 ms
62,684 KB
testcase_10 AC 41 ms
59,620 KB
testcase_11 AC 45 ms
62,360 KB
testcase_12 AC 46 ms
61,824 KB
testcase_13 AC 53 ms
66,324 KB
testcase_14 AC 273 ms
59,396 KB
testcase_15 AC 215 ms
62,268 KB
testcase_16 AC 299 ms
59,712 KB
testcase_17 AC 266 ms
61,508 KB
testcase_18 AC 166 ms
59,408 KB
testcase_19 AC 164 ms
62,552 KB
testcase_20 AC 205 ms
61,992 KB
testcase_21 AC 327 ms
68,608 KB
testcase_22 AC 38 ms
52,760 KB
testcase_23 AC 39 ms
53,832 KB
testcase_24 AC 156 ms
63,232 KB
testcase_25 AC 204 ms
61,104 KB
testcase_26 AC 296 ms
60,304 KB
testcase_27 AC 192 ms
60,180 KB
testcase_28 AC 471 ms
69,716 KB
testcase_29 AC 375 ms
66,660 KB
testcase_30 AC 356 ms
69,276 KB
testcase_31 AC 330 ms
68,432 KB
testcase_32 AC 269 ms
69,716 KB
testcase_33 AC 207 ms
66,572 KB
testcase_34 AC 138 ms
65,964 KB
testcase_35 AC 298 ms
67,104 KB
testcase_36 AC 155 ms
65,944 KB
testcase_37 AC 74 ms
61,556 KB
testcase_38 AC 82 ms
61,668 KB
testcase_39 AC 94 ms
60,700 KB
testcase_40 AC 74 ms
60,824 KB
testcase_41 AC 178 ms
60,984 KB
testcase_42 AC 70 ms
59,976 KB
testcase_43 AC 81 ms
61,404 KB
testcase_44 AC 160 ms
61,248 KB
testcase_45 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

h,w,la,lb,ka,kb = map(int,input().split())
ans = h+w
for i in range(h+1):
    ng = -1; ok = w+1
    while ok-ng>1:
        j = (ng+ok)//2
        if min(i*la,h)*min(j*lb,w)+i*ka+j*kb>=h*w: ok = j
        else: ng = j
    if ok<=w: ans = min(ans,i+ok)
print(ans)
0