結果

問題 No.2813 Cookie
ユーザー minimum
提出日時 2024-07-19 22:25:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 78,320 KB
最終ジャッジ日時 2024-07-19 22:25:43
合計ジャッジ時間 5,794 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N = int(input())
    A = list(map(int, input().split()))
    b = [1 << (len(bin(i - 1)) - 2) for i in A]
    # print(b)
    c = 0
    for i in b:
        c ^= i
    if c > 0:
        print("Alice")
    else:
        print("Bob")
    # print(c)

T = int(input())
for _ in range(T):
    solve()
0