結果
問題 |
No.1852 Divide or Reduce
|
ユーザー |
![]() |
提出日時 | 2023-11-13 08:52:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 286 ms / 2,000 ms |
コード長 | 319 bytes |
コンパイル時間 | 649 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 135,272 KB |
最終ジャッジ日時 | 2024-09-26 03:14:57 |
合計ジャッジ時間 | 8,473 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 20 |
ソースコード
import sys input = sys.stdin.readline def solve(A): if min(A) % 2 == 0 and len(A) % 2 == 0: return 1 v = 0 for a in A: v ^= a % 2 == 0 return v T = int(input()) for _ in range(T): N = int(input()) A = list(map(int, input().split())) print("First" if solve(A) else "Second")