結果
| 問題 | 
                            No.2044 Infinite Nim
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-04-24 23:21:43 | 
| 言語 | Kotlin  (2.1.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 302 bytes | 
| コンパイル時間 | 11,511 ms | 
| コンパイル使用メモリ | 427,560 KB | 
| 実行使用メモリ | 73,908 KB | 
| 最終ジャッジ日時 | 2024-09-20 03:04:17 | 
| 合計ジャッジ時間 | 28,963 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 31 RE * 3 | 
コンパイルメッセージ
Main.kt:2:9: warning: variable 'n' is never used
    val n = readInt()
        ^
            
            ソースコード
fun main() {
    val n = readInt()
    val a = readInts()
    val inf = a.count { it == -1 }
    val xor = a.filter { it != -1 }.reduce(Int::xor)
    println(if (inf % 2 == 1 || xor != 0) "First" else "Second")
}
fun readInt() = readln().toInt()
fun readInts() = readln().split(" ").map { it.toInt() }