結果
| 問題 |
No.524 コインゲーム
|
| コンテスト | |
| ユーザー |
utouto97
|
| 提出日時 | 2020-04-09 15:24:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 614 bytes |
| コンパイル時間 | 1,591 ms |
| コンパイル使用メモリ | 166,396 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-09-13 11:10:54 |
| 合計ジャッジ時間 | 5,801 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 4 TLE * 1 -- * 27 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, l, r) for (int i = (int)(l); i < (int)(r); i++)
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int)x.size())
template <class T> bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
template <class T> using V = vector<T>;
using P = pair<int, int>;
/*
*/
signed main() {
int n;
cin >> n;
int x = 0;
rep(i, 1, n+1){
x ^= i;
}
cout << (x ? "O" : "X") << endl;
return 0;
}
utouto97