結果
| 問題 |
No.598 オーバーフローファンタジー
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-11-24 23:09:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 2,478 ms |
| コンパイル使用メモリ | 159,476 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 07:59:28 |
| 合計ジャッジ時間 | 2,218 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 WA * 4 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n,N) for(int i=n;i<N;i++)
#define p(s) cout<<(s)<<endl
using namespace std;
int N,X,A,B;
string s;
int main(void){
cin>>N>>X>>A>>B;
int ans=min<int>((X+A-1)/A,(pow(2,N-1)-X+B-1)/B);
p(ans);
return 0;
}
dnish