結果
問題 |
No.524 コインゲーム
|
ユーザー |
|
提出日時 | 2020-10-15 03:12:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 498 bytes |
コンパイル時間 | 1,339 ms |
コンパイル使用メモリ | 164,560 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 19:36:59 |
合計ジャッジ時間 | 2,423 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <bits/stdc++.h> // #include <atcoder/all> // using namespace atcoder; #include <string> #include <vector> #include <algorithm> #define rep(i,n) for (int i = 0;i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; #define chmax(x,y) x = max(x,y) using R=double; using ld = long double; int INF = 1e9; using graph = vector<vector<int>>; //using mint = modint1000000007; int main(){ ll n;cin >> n; if(n%4 == 3) cout << "X" << endl; else cout << "O" << endl; }