結果
| 問題 | No.598 オーバーフローファンタジー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-28 09:59:36 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 124 bytes |
| 記録 | |
| コンパイル時間 | 2,998 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 53,596 KB |
| 最終ジャッジ日時 | 2026-01-28 09:59:42 |
| 合計ジャッジ時間 | 6,149 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
N = int(input()) X = int(input()) A = int(input()) B = int(input()) a = (X+A-1)//A b = (pow(2,N-1)-X+B-1)//B print(min(a,b))