結果

問題 No.524 コインゲーム
ユーザー stone_725
提出日時 2017-06-09 16:34:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 262 bytes
コンパイル時間 1,537 ms
コンパイル使用メモリ 158,608 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-02 10:31:56
合計ジャッジ時間 2,073 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

static void solve()
{
  unsigned int n;
  cin >> n;
  if (!n) cout << "X\n";
  n -= 3;
  if (n % 4 == 0) cout << "X\n";
  else cout << "O\n";
}

int main()
{
  ios::sync_with_stdio(false);
  cin.tie();
  solve();
}
0