結果

問題 No.2044 Infinite Nim
ユーザー chineristACchineristAC
提出日時 2022-08-19 22:09:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 469 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 87,424 KB
最終ジャッジ日時 2024-04-17 12:04:24
合計ジャッジ時間 4,085 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
55,552 KB
testcase_01 AC 54 ms
55,900 KB
testcase_02 AC 54 ms
55,424 KB
testcase_03 AC 54 ms
55,680 KB
testcase_04 AC 60 ms
55,552 KB
testcase_05 AC 53 ms
55,808 KB
testcase_06 AC 55 ms
55,808 KB
testcase_07 AC 54 ms
55,424 KB
testcase_08 AC 54 ms
55,296 KB
testcase_09 AC 54 ms
55,680 KB
testcase_10 AC 53 ms
55,296 KB
testcase_11 AC 54 ms
55,680 KB
testcase_12 AC 54 ms
55,168 KB
testcase_13 AC 75 ms
74,624 KB
testcase_14 AC 69 ms
70,144 KB
testcase_15 AC 69 ms
68,864 KB
testcase_16 AC 70 ms
69,504 KB
testcase_17 AC 79 ms
77,312 KB
testcase_18 AC 69 ms
68,864 KB
testcase_19 AC 70 ms
69,376 KB
testcase_20 AC 76 ms
73,984 KB
testcase_21 AC 83 ms
80,792 KB
testcase_22 AC 76 ms
75,008 KB
testcase_23 AC 72 ms
71,168 KB
testcase_24 AC 80 ms
78,208 KB
testcase_25 AC 70 ms
71,168 KB
testcase_26 AC 79 ms
77,568 KB
testcase_27 AC 70 ms
70,400 KB
testcase_28 AC 96 ms
83,712 KB
testcase_29 AC 82 ms
73,344 KB
testcase_30 AC 82 ms
79,104 KB
testcase_31 AC 88 ms
84,992 KB
testcase_32 AC 87 ms
85,120 KB
testcase_33 AC 88 ms
85,248 KB
testcase_34 AC 80 ms
81,664 KB
testcase_35 AC 88 ms
87,424 KB
testcase_36 AC 54 ms
55,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict,Counter
from heapq import heapify,heappop,heappush
from itertools import cycle, permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
A = li()

G = 0
T = 0
for a in A:
    if a==-1:
        T += 1
    else:
        G ^= a

if G == 0 and T&1 == 0:
    print("Second")
else:
    print("First")
0