結果

問題 No.524 コインゲーム
ユーザー DENTA
提出日時 2023-02-13 23:10:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 381 bytes
コンパイル時間 1,610 ms
コンパイル使用メモリ 166,832 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-16 13:49:25
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(),v.end()
using ll=long long int;
using pii=pair<int,int>;
using pdd=pair<double,double>;
const int mod=1000000000+7;
const int inf=1000000;


int main(){
    ll N;
    cin >> N;
    if(N%4==3)cout << "X" << endl;
    else cout << "O" << endl;
    return 0;
}
0