結果

問題 No.598 オーバーフローファンタジー
ユーザー rocoderrocoder
提出日時 2017-11-24 23:05:11
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-26 01:51:20
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=int(input())
A=int(input())
B=int(input())
N-=1
N=2**N
N-=X
R=0
if X%A!=0:
    R=1
A=X//A
A+=R
#A+=1
R=0
if N%B!=0:
    R=1
B=N//B
B+=R
if A>B:
    A=B
print(A)
0