結果

問題 No.524 コインゲーム
ユーザー nxterunxteru
提出日時 2018-12-31 12:25:30
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 351 bytes
コンパイル時間 1,484 ms
コンパイル使用メモリ 164,360 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 04:00:49
合計ジャッジ時間 2,491 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double D;
typedef pair<ll,ll> P;
#define M 1000000007
#define F first
#define S second
#define PB push_back
#define INF 1000000000000000
ll n;
int main(void){
    cin>>n;
    for(ll i=0;i<=32;i++){
		if(n==(1LL<<i)-1){
			printf("X\n");
			return 0;
		}
	}
	printf("O\n");
}
0