結果
| 問題 | No.524 コインゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-01 19:05:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 84,736 KB |
| 実行使用メモリ | 63,872 KB |
| 最終ジャッジ日時 | 2026-04-04 15:37:52 |
| 合計ジャッジ時間 | 5,289 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 3 TLE * 2 -- * 27 |
ソースコード
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
mod = 10**9 + 7
inf = float('inf')
N =I()
T = []
#print(T)
judge = int(0)
for i in range(N):
judge ^= (i+1)
if judge==0:
ans = "X"
else:
ans = "O"
print(ans)