結果

問題 No.1852 Divide or Reduce
ユーザー souta-1326souta-1326
提出日時 2022-04-21 21:27:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 813 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 1,620 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 135,556 KB
最終ジャッジ日時 2023-09-05 03:44:43
合計ジャッジ時間 12,900 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,372 KB
testcase_01 AC 279 ms
79,416 KB
testcase_02 AC 268 ms
79,572 KB
testcase_03 AC 264 ms
79,264 KB
testcase_04 AC 264 ms
78,348 KB
testcase_05 AC 266 ms
79,724 KB
testcase_06 AC 173 ms
124,980 KB
testcase_07 AC 176 ms
125,108 KB
testcase_08 AC 180 ms
130,816 KB
testcase_09 AC 171 ms
122,464 KB
testcase_10 AC 175 ms
127,944 KB
testcase_11 AC 182 ms
135,556 KB
testcase_12 AC 183 ms
134,644 KB
testcase_13 AC 183 ms
135,216 KB
testcase_14 AC 183 ms
135,112 KB
testcase_15 AC 185 ms
134,700 KB
testcase_16 AC 813 ms
102,864 KB
testcase_17 AC 801 ms
101,576 KB
testcase_18 AC 801 ms
102,852 KB
testcase_19 AC 729 ms
105,252 KB
testcase_20 AC 768 ms
101,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0