結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2020-03-22 19:07:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 2,003 ms |
コンパイル使用メモリ | 165,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 18:32:28 |
合計ジャッジ時間 | 11,588 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 TLE * 3 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define sz(x) int(x.size()) using namespace std; typedef long long ll; const int INF = 1e8; // const ll INF = 1LL << 60; typedef pair<int, int> P; int main() { ll N; cin >> N; ll ans = 0; for (ll i = 1; i <= N; i++) { ans ^= i; } // cout << ans << endl; if (ans != 0) { cout << "O" << endl; } else { cout << "X" << endl; } }