結果
| 問題 | No.1716 Bonus Nim |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2021-10-22 22:37:37 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 534 ms / 2,000 ms |
| + 2µs | |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,076 KB |
| 実行使用メモリ | 163,968 KB |
| 最終ジャッジ日時 | 2026-09-03 00:37:39 |
| 合計ジャッジ時間 | 8,490 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 |
ソースコード
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