結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2017-06-02 23:31:41 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 299 bytes |
コンパイル時間 | 1,572 ms |
コンパイル使用メモリ | 171,160 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 03:25:34 |
合計ジャッジ時間 | 2,693 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 9 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(int i=(n);i<(int)N;i++) #define p(s) cout<<(s)<<endl typedef long long ll; using namespace std; int main(){ ll N; cin>>N; set<ll> s; ll po=2; REP(i,0,33) { po*=2; s.insert(po-1); } if(s.find(N)==s.end()) p("O"); else p("X"); return 0; }