local q = io.read("*n") for iq = 1, q do local n = io.read("*n") local a = {} for i = 1, n do a[i] = io.read("*n") end table.sort(a) if n % 2 == 1 then print("Alice") else local f = false for i = 1, n - 1, 2 do if a[i] ~= a[i + 1] then f = true break end end print(f and "Alice" or "Bob") end end