結果

問題 No.2044 Infinite Nim
ユーザー dachengzdachengz
提出日時 2022-11-16 07:10:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 81,864 KB
実行使用メモリ 77,216 KB
最終ジャッジ日時 2023-10-17 06:41:56
合計ジャッジ時間 3,542 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,472 KB
testcase_01 AC 37 ms
53,472 KB
testcase_02 AC 38 ms
53,472 KB
testcase_03 AC 38 ms
53,472 KB
testcase_04 AC 37 ms
53,472 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 37 ms
53,472 KB
testcase_08 AC 38 ms
53,472 KB
testcase_09 AC 38 ms
53,472 KB
testcase_10 AC 37 ms
53,472 KB
testcase_11 AC 38 ms
53,472 KB
testcase_12 AC 38 ms
53,472 KB
testcase_13 AC 50 ms
67,708 KB
testcase_14 AC 47 ms
63,560 KB
testcase_15 AC 45 ms
63,136 KB
testcase_16 AC 46 ms
63,528 KB
testcase_17 AC 51 ms
68,900 KB
testcase_18 AC 44 ms
63,132 KB
testcase_19 AC 46 ms
63,416 KB
testcase_20 AC 49 ms
67,312 KB
testcase_21 AC 54 ms
72,164 KB
testcase_22 AC 49 ms
68,004 KB
testcase_23 AC 46 ms
64,420 KB
testcase_24 WA -
testcase_25 AC 47 ms
66,188 KB
testcase_26 WA -
testcase_27 AC 45 ms
63,724 KB
testcase_28 AC 57 ms
73,616 KB
testcase_29 WA -
testcase_30 AC 53 ms
69,484 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 58 ms
77,216 KB
testcase_36 AC 37 ms
53,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt_n1 = 0
xorval = 0
for a in A:
	if a == -1:
		cnt_n1 += 1
	else:
		xorval ^= a

if cnt_n1 == 0:
	print("First" if xorval else "Second")
else:
	print("First")
0