結果

問題 No.1852 Divide or Reduce
コンテスト
ユーザー cologne
提出日時 2022-02-25 21:46:50
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 352 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 730 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 44,184 KB
最終ジャッジ日時 2026-02-24 07:23:03
合計ジャッジ時間 21,319 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15 TLE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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