結果
| 問題 | 
                            No.1716 Bonus Nim
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Kude
                         | 
                    
| 提出日時 | 2021-10-22 22:37:37 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 804 ms / 2,000 ms | 
| コード長 | 286 bytes | 
| コンパイル時間 | 523 ms | 
| コンパイル使用メモリ | 82,108 KB | 
| 実行使用メモリ | 150,960 KB | 
| 最終ジャッジ日時 | 2024-09-23 06:19:42 | 
| 合計ジャッジ時間 | 6,478 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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