結果

問題 No.2044 Infinite Nim
ユーザー 👑 H20H20
提出日時 2022-08-19 23:02:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 83,328 KB
最終ジャッジ日時 2024-04-17 01:40:59
合計ジャッジ時間 3,590 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
51,840 KB
testcase_01 AC 41 ms
51,840 KB
testcase_02 AC 41 ms
51,840 KB
testcase_03 AC 42 ms
51,584 KB
testcase_04 AC 42 ms
51,712 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 41 ms
51,456 KB
testcase_08 AC 41 ms
51,840 KB
testcase_09 AC 42 ms
51,840 KB
testcase_10 AC 41 ms
52,096 KB
testcase_11 AC 42 ms
51,584 KB
testcase_12 AC 41 ms
51,840 KB
testcase_13 AC 62 ms
71,168 KB
testcase_14 AC 57 ms
66,304 KB
testcase_15 AC 60 ms
65,408 KB
testcase_16 AC 57 ms
65,920 KB
testcase_17 AC 66 ms
74,112 KB
testcase_18 AC 55 ms
64,768 KB
testcase_19 AC 57 ms
65,920 KB
testcase_20 AC 63 ms
70,272 KB
testcase_21 AC 70 ms
76,800 KB
testcase_22 AC 63 ms
71,552 KB
testcase_23 AC 59 ms
67,840 KB
testcase_24 WA -
testcase_25 AC 59 ms
67,456 KB
testcase_26 WA -
testcase_27 AC 57 ms
66,176 KB
testcase_28 AC 74 ms
80,128 KB
testcase_29 WA -
testcase_30 AC 66 ms
75,136 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 74 ms
83,328 KB
testcase_36 AC 42 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split())) 
infCnt = 0
xor = 0
for a in A:
    if a==-1:
        infCnt+=1
    else:
        xor^=a
if infCnt==0:
    if xor==0:
        print('Second')
    else:
        print('First')
else:
    print('First')
0