#include #include using namespace std; bool canAliceWin(const vector& A) { int moves = 0; for (int a : A) { // Each size greater than 1 adds potential moves if (a > 1) { moves += (a - 1); } } // If total moves are odd, Alice wins, otherwise Bob wins return moves % 2 == 1; } int main() { int T; cin >> T; vector results; for (int t = 0; t < T; ++t) { int N; cin >> N; vector A(N); for (int i = 0; i < N; ++i) { cin >> A[i]; } results.push_back(canAliceWin(A) ? "Alice" : "Bob"); } for (const string& result : results) { cout << result << endl; } return 0; }