結果
| 問題 |
No.524 コインゲーム
|
| ユーザー |
stone_725
|
| 提出日時 | 2017-06-03 12:47:05 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| コンパイル時間 | 1,915 ms |
| コンパイル使用メモリ | 158,588 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-22 04:27:42 |
| 合計ジャッジ時間 | 2,332 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 10 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
static void solve()
{
long long n;
cin >> n;
bitset<33> b(n + 1);
if (b.count() == 1) cout << "X\n";
else cout << "O\n";
}
int main()
{
ios::sync_with_stdio(false);
cin.tie();
solve();
}
stone_725