結果

問題 No.2044 Infinite Nim
ユーザー tktk_snsntktk_snsn
提出日時 2022-08-19 21:52:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 205 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 21,380 KB
最終ジャッジ日時 2024-04-17 00:33:04
合計ジャッジ時間 3,004 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,368 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 30 ms
10,368 KB
testcase_03 AC 31 ms
10,240 KB
testcase_04 AC 30 ms
10,368 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 30 ms
10,368 KB
testcase_08 AC 30 ms
10,496 KB
testcase_09 AC 32 ms
10,368 KB
testcase_10 AC 30 ms
10,496 KB
testcase_11 AC 31 ms
10,496 KB
testcase_12 AC 30 ms
10,368 KB
testcase_13 AC 50 ms
15,280 KB
testcase_14 AC 41 ms
13,336 KB
testcase_15 AC 40 ms
12,724 KB
testcase_16 AC 41 ms
13,184 KB
testcase_17 AC 52 ms
17,128 KB
testcase_18 AC 40 ms
12,544 KB
testcase_19 AC 40 ms
12,788 KB
testcase_20 AC 48 ms
15,124 KB
testcase_21 AC 58 ms
18,184 KB
testcase_22 AC 49 ms
15,220 KB
testcase_23 AC 43 ms
13,676 KB
testcase_24 WA -
testcase_25 AC 43 ms
14,320 KB
testcase_26 WA -
testcase_27 AC 41 ms
13,056 KB
testcase_28 AC 62 ms
18,808 KB
testcase_29 WA -
testcase_30 AC 53 ms
16,336 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 81 ms
21,380 KB
testcase_36 AC 30 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

if -1 in A:
    print("First")
else:
    nim = 0
    for a in A:
        nim ^= a
    if nim:
        print("First")
    else:
        print("Second")
0