結果
問題 | No.524 コインゲーム |
ユーザー |
|
提出日時 | 2019-11-01 19:05:08 |
言語 | PyPy3 (7.3.15) |
結果 |
MLE
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 65,516 KB |
最終ジャッジ日時 | 2024-09-14 22:49:13 |
合計ジャッジ時間 | 3,076 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 2 MLE * 1 -- * 29 |
ソースコード
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)