結果
問題 |
No.598 オーバーフローファンタジー
|
ユーザー |
|
提出日時 | 2017-11-25 00:20:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 160 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-27 08:50:22 |
合計ジャッジ時間 | 1,979 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 2 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) / B) print(a if a > b else b)