結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,752 KB
testcase_01 AC 27 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 29 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 29 ms
10,752 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 28 ms
10,624 KB
testcase_10 AC 28 ms
10,624 KB
testcase_11 AC 28 ms
10,752 KB
testcase_12 AC 30 ms
10,624 KB
testcase_13 AC 48 ms
15,800 KB
testcase_14 AC 40 ms
13,600 KB
testcase_15 WA -
testcase_16 AC 40 ms
13,568 KB
testcase_17 AC 53 ms
17,136 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 46 ms
15,516 KB
testcase_21 WA -
testcase_22 AC 47 ms
15,356 KB
testcase_23 AC 42 ms
13,808 KB
testcase_24 AC 53 ms
16,928 KB
testcase_25 AC 42 ms
14,500 KB
testcase_26 AC 51 ms
16,892 KB
testcase_27 AC 38 ms
13,184 KB
testcase_28 AC 60 ms
18,960 KB
testcase_29 AC 43 ms
15,380 KB
testcase_30 AC 52 ms
16,584 KB
testcase_31 AC 64 ms
19,968 KB
testcase_32 AC 65 ms
20,088 KB
testcase_33 AC 66 ms
19,964 KB
testcase_34 AC 56 ms
17,224 KB
testcase_35 AC 87 ms
21,648 KB
testcase_36 AC 30 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
m = a.count(-1)
if m%2: print("First")
elif m > 0: print("Second")
else:
    for i in range(n-1): a[i+1] ^= a[i]
    print("First" if a[-1] else "Second")
0