結果

問題 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
コンパイル時間 313 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,648 KB
最終ジャッジ日時 2024-10-08 07:52:30
合計ジャッジ時間 2,710 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,496 KB
testcase_01 AC 25 ms
10,368 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 26 ms
10,496 KB
testcase_04 AC 28 ms
10,368 KB
testcase_05 AC 27 ms
10,368 KB
testcase_06 AC 28 ms
10,496 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 26 ms
10,496 KB
testcase_10 AC 28 ms
10,368 KB
testcase_11 AC 27 ms
10,496 KB
testcase_12 AC 25 ms
10,368 KB
testcase_13 AC 43 ms
15,416 KB
testcase_14 AC 37 ms
13,216 KB
testcase_15 WA -
testcase_16 AC 35 ms
13,312 KB
testcase_17 AC 46 ms
17,004 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 41 ms
15,264 KB
testcase_21 WA -
testcase_22 AC 41 ms
15,104 KB
testcase_23 AC 37 ms
13,556 KB
testcase_24 AC 45 ms
16,872 KB
testcase_25 AC 36 ms
14,248 KB
testcase_26 AC 45 ms
16,768 KB
testcase_27 AC 35 ms
13,056 KB
testcase_28 AC 56 ms
18,704 KB
testcase_29 AC 40 ms
15,120 KB
testcase_30 AC 48 ms
16,472 KB
testcase_31 AC 60 ms
19,712 KB
testcase_32 AC 58 ms
19,836 KB
testcase_33 AC 58 ms
19,836 KB
testcase_34 AC 50 ms
17,092 KB
testcase_35 AC 81 ms
21,648 KB
testcase_36 AC 28 ms
10,368 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