結果
| 問題 | No.1716 Bonus Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-23 02:37:38 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,158 ms / 2,000 ms |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 20,792 KB |
| 実行使用メモリ | 50,068 KB |
| 最終ジャッジ日時 | 2026-04-11 17:34:54 |
| 合計ジャッジ時間 | 10,007 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 |
ソースコード
from collections import Counter
T = int(input())
for _ in range(T):
N = int(input())
A = list(map(int,input().split()))
if N%2==1:
print('Alice')
else:
c = Counter(A)
odd = False
for v in c.values():
if v%2:odd=True;break
print('Alice'if odd else 'Bob')