結果
| 問題 | No.3586 Divide and Be Conquered |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-09-06 01:25:34 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 111 ms / 2,000 ms |
| + 836µs | |
| コード長 | 306 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 95,948 KB |
| 実行使用メモリ | 110,848 KB |
| 最終ジャッジ日時 | 2026-09-06 01:25:44 |
| 合計ジャッジ時間 | 4,658 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N = int(input())
A = list(map(int, input().split()))
xor = 0
for a in A:
if a%5 in [2, 3]:
xor ^= 1
if a == 3:
xor ^= 3
print("First" if xor != 0 else "Second")
detteiuu