結果
| 問題 | No.1852 Divide or Reduce |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-04-21 21:27:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 514 ms / 2,000 ms |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 85,660 KB |
| 実行使用メモリ | 136,404 KB |
| 最終ジャッジ日時 | 2026-03-07 09:13:23 |
| 合計ジャッジ時間 | 8,070 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 |
ソースコード
for _ in range(int(input())):
N = int(input())
A = list(map(int,input().split()))
for i in range(N):A[i]-=1
if sum(A)%2:
print("First");continue
elif N%2:
print("Second");continue
else:
print("First" if min(A)%2 else "Second")