結果

問題 No.524 コインゲーム
ユーザー stone_725
提出日時 2017-06-03 12:55:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 272 bytes
コンパイル時間 1,208 ms
コンパイル使用メモリ 157,988 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 04:39:16
合計ジャッジ時間 2,251 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";
  while(n > 3) {
    n -= 4;
  }
  if (n == 3) cout << "X\n";
  else cout << "O\n";
}

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