結果

問題 No.524 コインゲーム
ユーザー claw88
提出日時 2017-06-02 22:56:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 649 bytes
コンパイル時間 762 ms
コンパイル使用メモリ 88,384 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-21 23:53:43
合計ジャッジ時間 4,224 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 3
other AC * 4 TLE * 1 -- * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <functional>
#include <utility>
using namespace std;
#define MOD 1000000007
#define ADD(X,Y) ((X) = ((X) + (Y)%MOD) % MOD)
typedef long long i64; typedef vector<int> ivec; typedef vector<string> svec; typedef pair<int, int> pi;
int dd[] = { 0, 1, 0, -1, 0 };


int main()
{
	unsigned int N;
	scanf("%u", &N);
	unsigned int x = 0;
	for (unsigned int i = 1; i <= N; i++)
	{
		x ^= i;
	}
	printf(x ? "O\n" : "X\n");
	return 0;
}
0