結果
| 問題 |
No.524 コインゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-01 19:12:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 391 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-14 22:49:19 |
| 合計ジャッジ時間 | 2,296 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)