結果

問題 No.524 コインゲーム
ユーザー kenntin
提出日時 2019-11-01 19:14:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 288 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-09-14 22:49:27
合計ジャッジ時間 2,191 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
if t%4!=0:
    judge=1

if judge==0:
    ans = "X"
else:
    ans = "O"
print(ans)
0