結果
| 問題 |
No.598 オーバーフローファンタジー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-05 04:17:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 229 bytes |
| コンパイル時間 | 2,558 ms |
| コンパイル使用メモリ | 190,484 KB |
| 最終ジャッジ日時 | 2025-01-10 06:38:49 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 6 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
using lint=long long;
int main(){
int n;
lint x,a,b; cin>>n>>x>>a>>b;
printf("%lld\n",min((x+a-1)/a,((1<<(n-1))-x+b-1)/b));
return 0;
}