結果

問題 No.1852 Divide or Reduce
ユーザー rlangevinrlangevin
提出日時 2023-11-13 08:52:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 283 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 329 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 135,304 KB
最終ジャッジ日時 2023-11-13 08:52:19
合計ジャッジ時間 8,736 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 180 ms
76,852 KB
testcase_02 AC 179 ms
76,596 KB
testcase_03 AC 180 ms
76,724 KB
testcase_04 AC 180 ms
76,596 KB
testcase_05 AC 204 ms
76,596 KB
testcase_06 AC 141 ms
119,872 KB
testcase_07 AC 144 ms
125,252 KB
testcase_08 AC 148 ms
129,536 KB
testcase_09 AC 139 ms
122,064 KB
testcase_10 AC 140 ms
107,212 KB
testcase_11 AC 148 ms
135,304 KB
testcase_12 AC 176 ms
134,016 KB
testcase_13 AC 146 ms
132,740 KB
testcase_14 AC 153 ms
134,532 KB
testcase_15 AC 148 ms
134,916 KB
testcase_16 AC 283 ms
99,668 KB
testcase_17 AC 283 ms
99,668 KB
testcase_18 AC 271 ms
99,668 KB
testcase_19 AC 220 ms
102,816 KB
testcase_20 AC 245 ms
99,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

def solve(A):
    if min(A) % 2 == 0 and len(A) % 2 == 0:
        return 1
    v = 0
    for a in A:
        v ^= a % 2 == 0
    return v

T = int(input())
for _ in range(T):
    N = int(input())
    A = list(map(int, input().split()))
    print("First" if solve(A) else "Second")
0