結果

問題 No.2044 Infinite Nim
ユーザー ニックネームニックネーム
提出日時 2022-08-19 21:46:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,640 KB
最終ジャッジ日時 2024-04-17 12:00:55
合計ジャッジ時間 3,206 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,624 KB
testcase_01 AC 32 ms
10,624 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 31 ms
10,624 KB
testcase_04 AC 33 ms
10,624 KB
testcase_05 AC 32 ms
10,624 KB
testcase_06 AC 32 ms
10,624 KB
testcase_07 AC 33 ms
10,624 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 32 ms
10,752 KB
testcase_10 AC 33 ms
10,624 KB
testcase_11 AC 32 ms
10,624 KB
testcase_12 AC 32 ms
10,752 KB
testcase_13 AC 60 ms
15,668 KB
testcase_14 AC 48 ms
13,468 KB
testcase_15 AC 46 ms
12,980 KB
testcase_16 AC 48 ms
13,564 KB
testcase_17 AC 66 ms
17,288 KB
testcase_18 AC 44 ms
12,928 KB
testcase_19 AC 46 ms
13,052 KB
testcase_20 AC 57 ms
15,512 KB
testcase_21 AC 73 ms
18,440 KB
testcase_22 AC 59 ms
15,352 KB
testcase_23 AC 50 ms
13,808 KB
testcase_24 AC 65 ms
16,916 KB
testcase_25 AC 50 ms
14,496 KB
testcase_26 AC 62 ms
16,888 KB
testcase_27 AC 48 ms
13,440 KB
testcase_28 AC 79 ms
19,200 KB
testcase_29 AC 55 ms
15,368 KB
testcase_30 AC 68 ms
16,596 KB
testcase_31 AC 86 ms
19,952 KB
testcase_32 AC 84 ms
19,952 KB
testcase_33 AC 84 ms
19,960 KB
testcase_34 AC 75 ms
17,388 KB
testcase_35 AC 86 ms
21,640 KB
testcase_36 AC 31 ms
10,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
m = x = 0
for v in a:
    if v == -1: m += 1
    else: x ^= v
print("First" if m%2 or x else "Second")
0