結果
| 問題 | 
                            No.2044 Infinite Nim
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-08-19 23:15:13 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 292 bytes | 
| コンパイル時間 | 162 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 21,644 KB | 
| 最終ジャッジ日時 | 2024-10-08 10:45:33 | 
| 合計ジャッジ時間 | 3,303 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 25 WA * 9 | 
ソースコード
n = int(input())
A = list(map(int, input().split()))
res = 0
inf_n = 0
for i in range(n):
    if A[i] == -1:
        inf_n += 1
    else:
        res ^= A[i] - 1
if res != 0:
    print("First")
else:
    if inf_n == 0 or inf_n == 2:
        print("Second")
    else:
        print("First")