結果
| 問題 | No.524 コインゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-01 19:12:18 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2026-08-27 12:38:48 |
| 合計ジャッジ時間 | 5,333 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 10 |
ソースコード
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
N =I()
"""
judge = int(0)
for i in range(N):
judge ^= (i+1)
"""
t = N+1
judge = int(0)
while t>1:
if t%2==1:
judge=1
break
t = t//2
if judge==0:
ans = "X"
else:
ans = "O"
print(ans)