結果
| 問題 | No.1852 Divide or Reduce |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-24 17:24:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 507 ms / 2,000 ms |
| + 832µs | |
| コード長 | 352 bytes |
| 記録 | |
| コンパイル時間 | 576 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 150,512 KB |
| 最終ジャッジ日時 | 2026-07-25 03:49:07 |
| 合計ジャッジ時間 | 8,611 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 |
ソースコード
def main():
T = int(input())
for i in range(T):
N = int(input())
*A, = map(lambda x: int(x)-1, input().split())
s = sum(A)
m = min(A)
if s % 2 == 1 or (s % 2 == 0 and N % 2 == 0 and m % 2 == 1):
print('First')
else:
print('Second')
if __name__ == '__main__':
main()