結果
| 問題 |
No.1852 Divide or Reduce
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-25 21:46:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,738 ms / 2,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 42,644 KB |
| 最終ジャッジ日時 | 2025-03-25 09:02:18 |
| 合計ジャッジ時間 | 17,312 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()