結果

問題 No.1716 Bonus Nim
ユーザー tassei903
提出日時 2021-10-25 09:01:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 654 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 126,592 KB
最終ジャッジ日時 2024-10-02 22:15:15
合計ジャッジ時間 4,916 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################
t = ni()
from collections import deque,Counter

for _ in range(t):
    n = ni()
    a = na()
    if n%2:
        print("Alice")
        continue
    c = Counter([i for i in a])
    for j in c:
        if j%2:
            print("Bob")
            exit()
    print("Alice")
0