結果
| 問題 |
No.524 コインゲーム
|
| ユーザー |
nanophoto12
|
| 提出日時 | 2017-07-17 22:42:17 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 583 bytes |
| コンパイル時間 | 936 ms |
| コンパイル使用メモリ | 89,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-08 07:12:02 |
| 合計ジャッジ時間 | 2,109 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#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 % 4 == 3)
{
cout << x << endl;
return 0;
}
else
{
cout << o << endl;
return 0;
}
}
nanophoto12