結果

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

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

static void solve()
{
  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