結果

問題 No.2044 Infinite Nim
ユーザー titiatitia
提出日時 2022-08-19 22:44:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 21,392 KB
最終ジャッジ日時 2024-04-17 01:22:52
合計ジャッジ時間 3,274 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,496 KB
testcase_01 AC 31 ms
10,624 KB
testcase_02 AC 32 ms
10,624 KB
testcase_03 AC 32 ms
10,624 KB
testcase_04 AC 31 ms
10,496 KB
testcase_05 AC 31 ms
10,368 KB
testcase_06 AC 31 ms
10,496 KB
testcase_07 AC 31 ms
10,496 KB
testcase_08 AC 31 ms
10,496 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 31 ms
10,368 KB
testcase_12 AC 32 ms
10,368 KB
testcase_13 AC 61 ms
15,464 KB
testcase_14 AC 47 ms
13,296 KB
testcase_15 AC 45 ms
12,740 KB
testcase_16 AC 46 ms
13,312 KB
testcase_17 AC 64 ms
17,000 KB
testcase_18 AC 45 ms
12,712 KB
testcase_19 AC 46 ms
12,924 KB
testcase_20 AC 57 ms
15,428 KB
testcase_21 AC 70 ms
17,540 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 65 ms
16,664 KB
testcase_25 WA -
testcase_26 AC 63 ms
16,640 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 54 ms
15,256 KB
testcase_30 WA -
testcase_31 AC 82 ms
18,816 KB
testcase_32 AC 82 ms
18,936 KB
testcase_33 AC 82 ms
19,076 KB
testcase_34 AC 72 ms
17,044 KB
testcase_35 AC 82 ms
21,392 KB
testcase_36 AC 30 ms
10,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N=int(input())
A=list(map(int,input().split()))

XOR=0
zero=0
for a in A:
    if a!=-1:
        XOR^=a
    else:
        zero+=1

if zero==0:
    if XOR==0:
        print("Second")
    else:
        print("First")

else:
    if XOR!=0:
        print("First")
    else:
        print("Second")
0