#include #include #include using namespace std; using i32 = int32_t; using u32 = uint32_t; using i64 = int64_t; using u64 = uint64_t; #define rep(i,n) for(int i=0; i<(n); i++) int main(){ int T; cin >> T; while(T--){ int N; cin >> N; vector A(N); for(auto& a : A) cin >> a; if(N%2 == 1){ cout << "Alice\n"; continue; } sort(A.begin(), A.end()); bool alice_win = true; rep(i,N/2+1) if(A[i] == A[i+N/2-1]) alice_win = false; bool perfect_pairs = true; rep(i,N/2) if(A[i*2] != A[i*2+1]) perfect_pairs = false; if(perfect_pairs) alice_win = false; if(alice_win) cout << "Alice\n"; else cout << "Bob\n"; } return 0; } struct ios_do_not_sync { ios_do_not_sync() { ios::sync_with_stdio(false); cin.tie(nullptr); } } ios_do_not_sync_instance;