/* -*- coding: utf-8 -*- * * 1716.cc: No.1716 Bonus Nim - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { int n; scanf("%d", &n); int gdy = 0; for (int i = 0; i < n; i++) { int ai; scanf("%d", &ai); gdy ^= (ai - 1); } if ((n & 1) || (gdy != 0)) puts("Alice"); else puts("Bob"); } return 0; }