結果
問題 |
No.1852 Divide or Reduce
|
ユーザー |
|
提出日時 | 2022-03-25 23:03:25 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 235 ms |
コンパイル使用メモリ | 82,252 KB |
実行使用メモリ | 137,240 KB |
最終ジャッジ日時 | 2024-10-14 07:09:42 |
合計ジャッジ時間 | 8,198 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 19 |
ソースコード
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 == 1 and mins % 2 == 0: ans.append(First) else: ans.append(Second) print(*ans, sep="\n")