結果

問題 No.2044 Infinite Nim
ユーザー wattaiheiwattaihei
提出日時 2022-08-20 10:56:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 81,968 KB
実行使用メモリ 83,716 KB
最終ジャッジ日時 2024-04-17 12:07:29
合計ジャッジ時間 3,101 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,192 KB
testcase_01 AC 38 ms
52,272 KB
testcase_02 AC 40 ms
52,332 KB
testcase_03 AC 37 ms
52,696 KB
testcase_04 AC 36 ms
52,460 KB
testcase_05 AC 40 ms
51,872 KB
testcase_06 AC 38 ms
52,544 KB
testcase_07 AC 36 ms
53,692 KB
testcase_08 AC 39 ms
52,132 KB
testcase_09 AC 37 ms
52,952 KB
testcase_10 AC 38 ms
52,408 KB
testcase_11 AC 36 ms
52,896 KB
testcase_12 AC 37 ms
52,736 KB
testcase_13 AC 53 ms
71,668 KB
testcase_14 AC 48 ms
66,404 KB
testcase_15 AC 46 ms
66,132 KB
testcase_16 AC 47 ms
66,112 KB
testcase_17 AC 54 ms
74,300 KB
testcase_18 AC 45 ms
65,364 KB
testcase_19 AC 46 ms
66,212 KB
testcase_20 AC 51 ms
70,784 KB
testcase_21 AC 57 ms
78,008 KB
testcase_22 AC 51 ms
71,680 KB
testcase_23 AC 47 ms
68,532 KB
testcase_24 AC 55 ms
76,308 KB
testcase_25 AC 47 ms
67,744 KB
testcase_26 AC 53 ms
74,592 KB
testcase_27 AC 47 ms
67,480 KB
testcase_28 AC 61 ms
81,148 KB
testcase_29 AC 50 ms
69,484 KB
testcase_30 AC 56 ms
76,600 KB
testcase_31 AC 62 ms
81,492 KB
testcase_32 AC 62 ms
81,656 KB
testcase_33 AC 61 ms
82,084 KB
testcase_34 AC 55 ms
79,084 KB
testcase_35 AC 62 ms
83,716 KB
testcase_36 AC 35 ms
53,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

x = 0
c = 0
for a in A:
    if a == -1:
        c ^= 1
    else:
        x ^= a

print("First" if x > 0 or c == 1 else "Second")
0