結果
| 問題 | No.1716 Bonus Nim | 
| コンテスト | |
| ユーザー |  tamato | 
| 提出日時 | 2021-10-22 21:41:33 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 236 ms / 2,000 ms | 
| コード長 | 599 bytes | 
| コンパイル時間 | 266 ms | 
| コンパイル使用メモリ | 82,296 KB | 
| 実行使用メモリ | 148,972 KB | 
| 最終ジャッジ日時 | 2024-09-23 05:01:14 | 
| 合計ジャッジ時間 | 5,796 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 26 | 
ソースコード
mod = 1000000007
eps = 10**-9
def main():
    import sys
    from collections import Counter
    input = sys.stdin.readline
    for _ in range(int(input())):
        N = int(input())
        A = list(map(int, input().split()))
        if N & 1:
            print("Alice")
        else:
            C = Counter(A)
            ok = 0
            for x in C:
                if C[x] & 1:
                    ok = 1
                    break
            if ok:
                print("Alice")
            else:
                print("Bob")
                    
if __name__ == '__main__':
    main()
            
            
            
        