結果

問題 No.524 コインゲーム
ユーザー kkty
提出日時 2017-11-04 18:26:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 594 bytes
コンパイル時間 1,426 ms
コンパイル使用メモリ 158,796 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-23 18:04:39
合計ジャッジ時間 2,558 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n) FOR(i,0,n)
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define PB push_back
#define LB lower_bound
#define UB upper_bound
#define PQ priority_queue
#define UM unordered_map
#define ALL(a) (a).begin(),(a).end()
#define MOD 1000000007
typedef vector<ll> vi;
typedef vector<vector<ll>> vvi;
const ll INF = (1ll << 30);
typedef pair<ll,ll> pii;
struct Edge{ ll s,t,c; };
typedef vector<vector<ll>> Graph;
typedef vector<pii> vpii;

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

}
0