結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,224 KB
testcase_01 AC 30 ms
51,840 KB
testcase_02 AC 31 ms
51,840 KB
testcase_03 AC 31 ms
52,096 KB
testcase_04 AC 30 ms
51,752 KB
testcase_05 AC 31 ms
51,584 KB
testcase_06 AC 34 ms
52,224 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 33 ms
51,840 KB
testcase_10 AC 32 ms
51,584 KB
testcase_11 AC 31 ms
52,216 KB
testcase_12 AC 32 ms
52,224 KB
testcase_13 AC 48 ms
71,168 KB
testcase_14 AC 42 ms
66,304 KB
testcase_15 WA -
testcase_16 AC 44 ms
65,920 KB
testcase_17 AC 46 ms
73,728 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 43 ms
70,528 KB
testcase_21 WA -
testcase_22 AC 45 ms
71,424 KB
testcase_23 AC 40 ms
67,840 KB
testcase_24 AC 47 ms
74,752 KB
testcase_25 AC 42 ms
67,328 KB
testcase_26 AC 50 ms
73,856 KB
testcase_27 AC 43 ms
66,816 KB
testcase_28 AC 52 ms
80,472 KB
testcase_29 AC 42 ms
69,624 KB
testcase_30 AC 47 ms
75,520 KB
testcase_31 AC 55 ms
81,280 KB
testcase_32 AC 59 ms
81,776 KB
testcase_33 AC 55 ms
81,408 KB
testcase_34 AC 49 ms
77,696 KB
testcase_35 AC 56 ms
83,712 KB
testcase_36 AC 30 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:
    if infCnt%2==0:
        print('Second')
    else:
        print('First')
0