結果

問題 No.1852 Divide or Reduce
ユーザー colognecologne
提出日時 2022-02-25 21:46:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,971 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 42,292 KB
最終ジャッジ日時 2024-12-12 11:44:55
合計ジャッジ時間 19,463 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    T = int(input())
    for i in range(T):
        N = int(input())
        *A, = map(lambda x: int(x)-1, input().split())
        s = sum(A)
        m = min(A)
        if s % 2 == 1 or (s % 2 == 0 and N % 2 == 0 and m % 2 == 1):
            print('First')
        else:
            print('Second')


if __name__ == '__main__':
    main()
0