結果
| 問題 | No.1852 Divide or Reduce |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-25 23:11:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 396 ms / 2,000 ms |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 82,852 KB |
| 実行使用メモリ | 137,404 KB |
| 最終ジャッジ日時 | 2024-10-14 07:18:24 |
| 合計ジャッジ時間 | 6,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 |
ソースコード
T = int(input())
First, Second = "First", "Second"
ans = []
for _ in range(T):
N = int(input())
A = list(map(int, input().split()))
mins = min(A)
sums = sum(A)
if (sums - N) % 2 == 1:
ans.append(First)
elif N % 2 == 0 and mins % 2 == 0:
ans.append(First)
else:
ans.append(Second)
print(*ans, sep="\n")