結果
| 問題 |
No.598 オーバーフローファンタジー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-18 23:30:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 2,158 ms |
| コンパイル使用メモリ | 192,452 KB |
| 最終ジャッジ日時 | 2025-01-07 14:13:43 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n,x,a,b;
cin>>n>>x>>a>>b;
cout<<min((x+a-1)/a,((1<<(n-1))-x+b-1)/b)<<endl;
return 0;
}