結果

問題 No.2044 Infinite Nim
ユーザー asumo0729asumo0729
提出日時 2022-08-21 18:10:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 83,644 KB
最終ジャッジ日時 2024-04-18 13:07:20
合計ジャッジ時間 3,260 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,292 KB
testcase_01 AC 34 ms
51,828 KB
testcase_02 AC 35 ms
53,292 KB
testcase_03 AC 35 ms
52,340 KB
testcase_04 AC 34 ms
53,572 KB
testcase_05 AC 35 ms
51,744 KB
testcase_06 AC 35 ms
52,892 KB
testcase_07 AC 34 ms
52,836 KB
testcase_08 AC 34 ms
53,320 KB
testcase_09 AC 35 ms
52,220 KB
testcase_10 AC 35 ms
53,216 KB
testcase_11 AC 35 ms
52,700 KB
testcase_12 AC 34 ms
52,000 KB
testcase_13 AC 51 ms
71,800 KB
testcase_14 AC 46 ms
67,616 KB
testcase_15 AC 45 ms
65,632 KB
testcase_16 AC 45 ms
67,440 KB
testcase_17 AC 51 ms
74,136 KB
testcase_18 AC 44 ms
66,604 KB
testcase_19 AC 46 ms
65,596 KB
testcase_20 AC 48 ms
70,648 KB
testcase_21 AC 56 ms
78,560 KB
testcase_22 AC 52 ms
73,104 KB
testcase_23 AC 48 ms
68,540 KB
testcase_24 AC 54 ms
74,900 KB
testcase_25 AC 46 ms
68,528 KB
testcase_26 AC 51 ms
74,300 KB
testcase_27 AC 44 ms
67,316 KB
testcase_28 AC 59 ms
80,384 KB
testcase_29 AC 49 ms
70,188 KB
testcase_30 AC 55 ms
76,132 KB
testcase_31 AC 61 ms
82,360 KB
testcase_32 AC 60 ms
81,836 KB
testcase_33 AC 60 ms
82,508 KB
testcase_34 AC 54 ms
78,232 KB
testcase_35 AC 61 ms
83,644 KB
testcase_36 AC 36 ms
52,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
inf = 1; x = 0
for a in A:
    if a == -1:
        inf += 1
    else:
        x ^= a
ans = 'First'
if inf & 1 and x == 0:
    ans = 'Second'
print(ans)
0