結果
問題 | No.1852 Divide or Reduce |
ユーザー |
|
提出日時 | 2022-02-25 22:56:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 681 ms / 2,000 ms |
コード長 | 438 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 82,508 KB |
実行使用メモリ | 137,204 KB |
最終ジャッジ日時 | 2024-07-03 17:54:02 |
合計ジャッジ時間 | 8,514 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 20 |
ソースコード
t = int(input()) for _ in range(t): n = int(input()) A = list(map(int,input().split())) num = 0 dif = 10**20 for a in A: dif = min(dif,a-1) num += a-1 if num%2: print("First") continue if dif == 0: print("Second") continue if n%2: print("Second") continue if dif%2: print("First") else: print("Second")