結果

問題 No.598 オーバーフローファンタジー
ユーザー 👑 rin204rin204
提出日時 2022-01-19 23:03:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-08-15 08:13:37
合計ジャッジ時間 4,451 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,132 KB
testcase_01 AC 73 ms
71,324 KB
testcase_02 AC 72 ms
71,204 KB
testcase_03 AC 73 ms
71,284 KB
testcase_04 AC 71 ms
71,204 KB
testcase_05 AC 70 ms
71,248 KB
testcase_06 AC 70 ms
71,144 KB
testcase_07 AC 70 ms
71,140 KB
testcase_08 AC 71 ms
71,288 KB
testcase_09 AC 72 ms
71,252 KB
testcase_10 AC 71 ms
71,136 KB
testcase_11 AC 72 ms
71,192 KB
testcase_12 AC 72 ms
71,464 KB
testcase_13 AC 70 ms
71,508 KB
testcase_14 AC 71 ms
71,008 KB
testcase_15 AC 72 ms
71,408 KB
testcase_16 AC 70 ms
71,280 KB
testcase_17 AC 72 ms
71,504 KB
testcase_18 AC 70 ms
71,396 KB
testcase_19 AC 70 ms
71,184 KB
testcase_20 AC 69 ms
71,512 KB
testcase_21 AC 71 ms
71,196 KB
testcase_22 AC 71 ms
71,256 KB
testcase_23 AC 70 ms
71,292 KB
testcase_24 AC 70 ms
71,252 KB
testcase_25 AC 71 ms
71,196 KB
testcase_26 AC 71 ms
71,416 KB
testcase_27 AC 71 ms
71,252 KB
testcase_28 AC 71 ms
71,048 KB
testcase_29 AC 71 ms
71,144 KB
testcase_30 AC 70 ms
71,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = int(input())
a = int(input())
b = int(input())

ans1 = (x + a - 1) // a
y = 2 ** (n - 1) - x
ans2 = (y + b - 1) // b
print(min(ans1, ans2))
0