結果
| 問題 | No.598 オーバーフローファンタジー | 
| コンテスト | |
| ユーザー | 👑  Kazun | 
| 提出日時 | 2021-01-28 23:43:44 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 40 ms / 2,000 ms | 
| コード長 | 113 bytes | 
| コンパイル時間 | 387 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 52,096 KB | 
| 最終ジャッジ日時 | 2024-06-26 07:25:59 | 
| 合計ジャッジ時間 | 2,892 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 28 | 
ソースコード
N=int(input()) X=int(input()) A=int(input()) B=int(input()) P=(X+A-1)//A Q=(pow(2,N-1)-X+B-1)//B print(min(P,Q))
