結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2017-06-02 23:57:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 479 ms |
コンパイル使用メモリ | 65,348 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 03:37:56 |
合計ジャッジ時間 | 8,760 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 TLE * 3 |
ソースコード
#include <iostream> using namespace std; int main(){ using ll = long long; ll n; cin >> n; ll a = 0; for(ll i = 1; i <= n; i++) a ^= i; cout << (a ? 'O' : 'X') << endl; }