結果
| 問題 |
No.524 コインゲーム
|
| ユーザー |
maspy
|
| 提出日時 | 2020-02-26 16:36:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-10-13 15:24:57 |
| 合計ジャッジ時間 | 2,379 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 11 |
ソースコード
#!/usr/bin/env python3
# %%
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
# %%
N = int(read())
# %%
x = (N - 1) // 4 * 4
xor = 0
for i in range(x + 1, N + 1):
xor ^= i
# %%
print('O' if xor else 'X')
maspy