結果

問題 No.2044 Infinite Nim
ユーザー ikomaikoma
提出日時 2022-08-19 23:23:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,496 KB
実行使用メモリ 82,432 KB
最終ジャッジ日時 2024-04-17 12:06:46
合計ジャッジ時間 3,063 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
51,876 KB
testcase_01 AC 36 ms
51,584 KB
testcase_02 AC 36 ms
51,456 KB
testcase_03 AC 36 ms
51,328 KB
testcase_04 AC 36 ms
51,584 KB
testcase_05 AC 36 ms
51,712 KB
testcase_06 AC 36 ms
51,712 KB
testcase_07 AC 37 ms
51,584 KB
testcase_08 AC 37 ms
51,968 KB
testcase_09 AC 36 ms
51,840 KB
testcase_10 AC 41 ms
51,584 KB
testcase_11 AC 37 ms
51,456 KB
testcase_12 AC 37 ms
51,456 KB
testcase_13 AC 52 ms
70,656 KB
testcase_14 AC 47 ms
65,792 KB
testcase_15 AC 47 ms
65,280 KB
testcase_16 AC 47 ms
65,152 KB
testcase_17 AC 53 ms
73,216 KB
testcase_18 AC 46 ms
64,640 KB
testcase_19 AC 46 ms
65,536 KB
testcase_20 AC 52 ms
69,888 KB
testcase_21 AC 58 ms
76,032 KB
testcase_22 AC 52 ms
70,912 KB
testcase_23 AC 49 ms
67,456 KB
testcase_24 AC 54 ms
74,112 KB
testcase_25 AC 48 ms
66,560 KB
testcase_26 AC 53 ms
72,960 KB
testcase_27 AC 46 ms
66,304 KB
testcase_28 AC 60 ms
79,360 KB
testcase_29 AC 49 ms
69,248 KB
testcase_30 AC 57 ms
75,008 KB
testcase_31 AC 61 ms
80,512 KB
testcase_32 AC 61 ms
80,256 KB
testcase_33 AC 61 ms
80,512 KB
testcase_34 AC 55 ms
77,440 KB
testcase_35 AC 60 ms
82,432 KB
testcase_36 AC 36 ms
51,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
N=int(input())
A=list(map(int,input().split()))

cntInf = 0
xor = 0
for a in A:
    if a==-1:
        cntInf+=1
    else:
        xor ^= a
if cntInf%2==1:
    print("First")
else:
    print("First" if xor!=0 else "Second")

0