結果

問題 No.2044 Infinite Nim
ユーザー terasaterasa
提出日時 2022-08-19 22:32:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 903 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 90,368 KB
最終ジャッジ日時 2024-04-17 12:05:54
合計ジャッジ時間 3,966 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
64,384 KB
testcase_01 AC 59 ms
64,648 KB
testcase_02 AC 59 ms
64,640 KB
testcase_03 AC 58 ms
64,128 KB
testcase_04 AC 59 ms
64,640 KB
testcase_05 AC 58 ms
64,000 KB
testcase_06 AC 58 ms
64,640 KB
testcase_07 AC 59 ms
64,256 KB
testcase_08 AC 59 ms
64,000 KB
testcase_09 AC 59 ms
64,668 KB
testcase_10 AC 57 ms
64,640 KB
testcase_11 AC 58 ms
64,512 KB
testcase_12 AC 59 ms
64,640 KB
testcase_13 AC 72 ms
77,312 KB
testcase_14 AC 67 ms
72,320 KB
testcase_15 AC 65 ms
71,936 KB
testcase_16 AC 66 ms
72,960 KB
testcase_17 AC 72 ms
80,348 KB
testcase_18 AC 64 ms
72,064 KB
testcase_19 AC 65 ms
71,808 KB
testcase_20 AC 69 ms
76,160 KB
testcase_21 AC 76 ms
82,944 KB
testcase_22 AC 71 ms
78,464 KB
testcase_23 AC 66 ms
74,112 KB
testcase_24 AC 73 ms
80,896 KB
testcase_25 AC 68 ms
74,112 KB
testcase_26 AC 72 ms
80,384 KB
testcase_27 AC 65 ms
73,216 KB
testcase_28 AC 78 ms
86,576 KB
testcase_29 AC 69 ms
75,904 KB
testcase_30 AC 74 ms
81,408 KB
testcase_31 AC 81 ms
87,808 KB
testcase_32 AC 82 ms
87,424 KB
testcase_33 AC 81 ms
87,808 KB
testcase_34 AC 75 ms
85,248 KB
testcase_35 AC 88 ms
90,368 KB
testcase_36 AC 59 ms
64,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import pypyjit
import itertools
import heapq
import math
from collections import deque, defaultdict
import bisect
import string
import re

input = sys.stdin.readline
sys.setrecursionlimit(10 ** 6)
pypyjit.set_param('max_unroll_recursion=-1')


def index_lt(a, x):
    'return largest index s.t. A[i] < x or -1 if it does not exist'
    return bisect.bisect_left(a, x) - 1


def index_le(a, x):
    'return largest index s.t. A[i] <= x or -1 if it does not exist'
    return bisect.bisect_right(a, x) - 1


def index_gt(a, x):
    'return smallest index s.t. A[i] > x or len(a) if it does not exist'
    return bisect.bisect_right(a, x)


def index_ge(a, x):
    'return smallest index s.t. A[i] >= x or len(a) if it does not exist'
    return bisect.bisect_left(a, x)


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

g = 0
for a in A:
    g ^= a
print("Second" if g == 0 else "First")
0