結果

問題 No.2044 Infinite Nim
ユーザー ShirotsumeShirotsume
提出日時 2022-08-19 21:45:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 522 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 86,144 KB
最終ジャッジ日時 2024-04-17 12:00:59
合計ジャッジ時間 3,732 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
52,224 KB
testcase_01 AC 44 ms
51,456 KB
testcase_02 AC 44 ms
51,840 KB
testcase_03 AC 45 ms
51,456 KB
testcase_04 AC 44 ms
52,352 KB
testcase_05 AC 47 ms
52,096 KB
testcase_06 AC 45 ms
51,584 KB
testcase_07 AC 45 ms
52,480 KB
testcase_08 AC 44 ms
51,840 KB
testcase_09 AC 44 ms
51,840 KB
testcase_10 AC 45 ms
51,456 KB
testcase_11 AC 45 ms
52,224 KB
testcase_12 AC 44 ms
52,480 KB
testcase_13 AC 70 ms
74,112 KB
testcase_14 AC 63 ms
67,200 KB
testcase_15 AC 63 ms
68,096 KB
testcase_16 AC 65 ms
66,688 KB
testcase_17 AC 70 ms
74,752 KB
testcase_18 AC 61 ms
67,328 KB
testcase_19 AC 62 ms
67,712 KB
testcase_20 AC 66 ms
71,936 KB
testcase_21 AC 77 ms
79,872 KB
testcase_22 AC 71 ms
76,288 KB
testcase_23 AC 65 ms
71,552 KB
testcase_24 AC 71 ms
76,928 KB
testcase_25 AC 60 ms
67,584 KB
testcase_26 AC 68 ms
74,112 KB
testcase_27 AC 63 ms
70,528 KB
testcase_28 AC 82 ms
85,888 KB
testcase_29 AC 62 ms
70,144 KB
testcase_30 AC 74 ms
80,256 KB
testcase_31 AC 84 ms
86,144 KB
testcase_32 AC 83 ms
85,888 KB
testcase_33 AC 84 ms
85,760 KB
testcase_34 AC 79 ms
85,376 KB
testcase_35 AC 78 ms
84,076 KB
testcase_36 AC 45 ms
51,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
rec = False #再帰を使うときはこれをTrueにする
if rec:
    sys.setrecursionlimit(5 * 10 ** 5)
    from pypyjit import set_param
    set_param('max_unroll_recursion=-1')
inf = 2 ** 63 - 1
mod = 998244353


n = ii()

a = li()
xor = 0
for v in a:
    if v == -1:
        xor ^= inf
    else:
        xor ^= v
if xor == 0:
    print('Second')
else:
    print('First')
0