/* -*- coding: utf-8 -*- * * 2813.cc: No.2813 Cookie - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 200000; /* typedef */ /* global variables */ int as[MAX_N]; /* subroutines */ /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", as + i); int x = 0; for (int i = 0; i < n; i++) x ^= (as[i] + 1) / 2; if (x > 0) puts("Alice"); else puts("Bob"); } return 0; }