結果
| 問題 |
No.1852 Divide or Reduce
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-25 22:17:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 402 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 82,508 KB |
| 実行使用メモリ | 135,068 KB |
| 最終ジャッジ日時 | 2024-07-03 17:10:45 |
| 合計ジャッジ時間 | 5,359 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 3 WA * 17 |
ソースコード
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')