結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2017-07-17 22:02:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 716 bytes |
コンパイル時間 | 720 ms |
コンパイル使用メモリ | 91,028 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-08 07:09:43 |
合計ジャッジ時間 | 1,799 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 7 |
ソースコード
#include <cmath> #include <vector> #include <map> #include <set> #include <functional> #include <queue> #include <iostream> #include <string.h> #include <iomanip> #include <algorithm> #include <functional> #include <cstdint> #include <climits> #include <unordered_set> #include <sstream> using namespace std; #define ll long long int #define pii pair<int,int> int main() { ll n; cin >> n; string o = "O"; string x = "X"; if(n == 1) { cout << o << endl; return 0; } else { if(n % 2 == 0) { cout << o << endl; return 0; } else { cout << x << endl; return 0; } } }