結果

問題 No.2044 Infinite Nim
ユーザー asumo0729asumo0729
提出日時 2022-08-19 21:36:16
言語 PyPy3
(7.3.15)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 917 bytes
コンパイル時間 449 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 94,976 KB
最終ジャッジ日時 2024-04-17 11:58:50
合計ジャッジ時間 4,426 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
60,928 KB
testcase_01 AC 63 ms
61,276 KB
testcase_02 AC 70 ms
60,800 KB
testcase_03 AC 62 ms
60,416 KB
testcase_04 AC 66 ms
60,416 KB
testcase_05 AC 61 ms
60,800 KB
testcase_06 AC 60 ms
60,544 KB
testcase_07 AC 61 ms
60,800 KB
testcase_08 AC 62 ms
60,544 KB
testcase_09 AC 61 ms
60,544 KB
testcase_10 AC 61 ms
61,440 KB
testcase_11 AC 61 ms
60,672 KB
testcase_12 AC 61 ms
60,288 KB
testcase_13 AC 110 ms
80,000 KB
testcase_14 AC 78 ms
72,832 KB
testcase_15 AC 77 ms
72,320 KB
testcase_16 AC 77 ms
72,320 KB
testcase_17 AC 89 ms
82,944 KB
testcase_18 AC 76 ms
72,064 KB
testcase_19 AC 78 ms
72,448 KB
testcase_20 AC 85 ms
78,208 KB
testcase_21 AC 94 ms
87,040 KB
testcase_22 AC 84 ms
80,896 KB
testcase_23 AC 90 ms
75,904 KB
testcase_24 AC 91 ms
83,840 KB
testcase_25 AC 83 ms
74,240 KB
testcase_26 AC 89 ms
82,304 KB
testcase_27 AC 78 ms
74,368 KB
testcase_28 AC 99 ms
92,160 KB
testcase_29 AC 83 ms
76,800 KB
testcase_30 AC 91 ms
85,888 KB
testcase_31 AC 100 ms
92,416 KB
testcase_32 AC 100 ms
92,800 KB
testcase_33 AC 101 ms
92,672 KB
testcase_34 AC 97 ms
89,856 KB
testcase_35 AC 100 ms
94,976 KB
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from operator import itemgetter
from collections import defaultdict, deque
import heapq
from heapq import heapify, heappop, _heapify_max, heappush
from bisect import bisect_left, bisect_right
import math
import itertools
import copy

stdin=sys.stdin
#sys.setrecursionlimit(10 ** 7)
## import pypyjit
## pypyjit.set_param('max_unroll_recursion=-1')

ip=lambda: int(sp())
fp=lambda: float(sp())
lp=lambda:list(map(int,stdin.readline().split()))
sp=lambda:stdin.readline().rstrip()
Yp=lambda:print('Yes')
Np=lambda:print('No')
inf = 1 << 60
mod = 10 ** 9 + 7
mod = 998244353
eps = 1e-9
sortkey1 = itemgetter(0)
sortkey2 = lambda x: (x[0], x[1])



###############################################################

N = ip()
A = lp()
B = []
for a in A:
    if a == -1:
        B.append(2)
    else:
        B.append(a)
x = 0
for b in B:
    x ^= b
if x != 0:
    ans = 'First'
else:
    ans = 'Second'
print(ans)
0