結果
| 問題 | No.3752 No Use Crying Over Suffixes |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-10-02 22:35:19 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 90 ms / 2,000 ms |
| + 220µs | |
| コード長 | 339 bytes |
| 記録 | |
| コンパイル時間 | 1,878 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 84,480 KB |
| 最終ジャッジ日時 | 2026-10-02 22:35:28 |
| 合計ジャッジ時間 | 5,140 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N = int(input())
A = list(map(int, input().split()))
F = [False]*2
F[1] = True
for a in A[::-1]:
if a == 1:
F = [True, F[0]]
elif a%2 == 1:
F[0], F[1] = F[1], F[0]
print("Alice" if F[0] else "Bob")
detteiuu