結果

問題 No.2044 Infinite Nim
ユーザー rlangevinrlangevin
提出日時 2022-08-21 01:14:23
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 82,548 KB
実行使用メモリ 83,968 KB
最終ジャッジ日時 2024-04-17 22:52:17
合計ジャッジ時間 2,961 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,840 KB
testcase_01 AC 31 ms
51,456 KB
testcase_02 AC 31 ms
52,224 KB
testcase_03 WA -
testcase_04 AC 31 ms
51,968 KB
testcase_05 AC 32 ms
51,712 KB
testcase_06 AC 32 ms
51,968 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 32 ms
51,712 KB
testcase_12 AC 34 ms
52,224 KB
testcase_13 AC 48 ms
71,296 KB
testcase_14 AC 43 ms
65,792 KB
testcase_15 WA -
testcase_16 AC 40 ms
65,408 KB
testcase_17 AC 49 ms
74,112 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 47 ms
70,272 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 49 ms
74,752 KB
testcase_25 WA -
testcase_26 AC 47 ms
73,984 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 45 ms
68,992 KB
testcase_30 WA -
testcase_31 AC 58 ms
81,280 KB
testcase_32 AC 58 ms
81,408 KB
testcase_33 AC 56 ms
81,280 KB
testcase_34 AC 49 ms
77,440 KB
testcase_35 AC 58 ms
83,968 KB
testcase_36 AC 34 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
cnt = 0
xor = 0
for i in range(N):
    if A[i] == -1:
        cnt += 1
    else:
        xor ^= A[i]
        
if xor:
    if cnt % 2:
        print("First")
    else:
        print("Second")
else:
    print("Second")
0