結果
問題 |
No.524 コインゲーム
|
ユーザー |
|
提出日時 | 2019-05-08 12:01:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 155 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 17,440 KB |
最終ジャッジ日時 | 2024-07-02 00:26:39 |
合計ジャッジ時間 | 2,618 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 2 TLE * 1 -- * 29 |
ソースコード
def solve(n): winning = 0 for i in range(1, n + 1): winning ^= i return "X" if winning == 0 else "O" n = int(input()) print(solve(n))