結果
| 問題 |
No.524 コインゲーム
|
| ユーザー |
|
| 提出日時 | 2017-06-03 00:06:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 1,447 ms |
| コンパイル使用メモリ | 165,100 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 03:40:49 |
| 合計ジャッジ時間 | 2,492 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main( int argc, char *argv[] )
{
long long N;
ios::sync_with_stdio( false );
cin.tie( 0 );
cin >> N;
if( N == 1 )
cout << "O" << endl;
else if( N % 2 == 1 )
cout << "X" << endl;
else
cout << "O" << endl;
return 0;
}