結果
| 問題 | No.1716 Bonus Nim |
| ユーザー |
Kude
|
| 提出日時 | 2021-10-22 22:37:37 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 769 ms / 2,000 ms |
| + 493µs | |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 64,264 KB |
| 実行使用メモリ | 114,724 KB |
| 最終ジャッジ日時 | 2026-10-28 04:51:58 |
| 合計ジャッジ時間 | 6,329 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 27 |
ソースコード
from collections import Counter
for _ in range(int(input())):
n = int(input())
c = Counter(map(int, input().split()))
if n % 2:
print('Alice')
else:
if all(x % 2 == 0 for x in c.values()):
print('Bob')
else:
print('Alice')
Kude