結果

問題 No.598 オーバーフローファンタジー
ユーザー nxteru
提出日時 2017-11-24 22:45:37
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 78,588 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-27 07:37:03
合計ジャッジ時間 1,514 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <queue>
#include <cstdio>
#include <cstring>
#include <vector>
#include <set>
#include <math.h>
using namespace std;
typedef long long ll;
ll n,x,a,b;
int main(void){
    cin>>n>>x>>a>>b;
    ll i=n-1;
    n=1;
    for(int j=0;j<i;j++)n*=2;
    cout<<min(ceil(double(x)/double(a)),ceil(double(n-x)/double(b)));
}
0