結果
問題 |
No.598 オーバーフローファンタジー
|
ユーザー |
|
提出日時 | 2017-11-25 00:20:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 156 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-11-27 08:50:19 |
合計ジャッジ時間 | 2,049 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 1 WA * 1 RE * 26 |
ソースコード
from math import * N = int(input()) X = int(input()) A = int(input()) B = int(input()) a = ceil(X / A) b = ceil((1 << (N - 1) - X)) print(a if a > b else b)