結果

問題 No.1852 Divide or Reduce
コンテスト
ユーザー roaris
提出日時 2022-02-25 22:17:23
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 402 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 274 ms
コンパイル使用メモリ 85,120 KB
実行使用メモリ 134,292 KB
最終ジャッジ日時 2026-03-25 01:06:09
合計ジャッジ時間 4,241 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = sys.stdin.readline

for _ in range(int(input())):
    N = int(input())
    A = list(map(int, input().split()))
    S = sum(A)
    m = min(A)
    
    if 1 in A:
        if (S-N)%2==0:
            print('Second')
        else:
            print('First')
    else:
        if (S-1-N)%2==0 or (m==2 and (S-2*N)%2==0):
            print('First')
        else:
            print('Second')
0