#include<bits/stdc++.h>
using namespace std;
int T;
int n;
void solve(){
cin>>n;
vector<int> a(n+10,0);
int cnt=0;
bool f=false;
for(int i=1;i<=n;i++){
cin>>a[i];
if(a[i]!=1) f=true;
if(!f&&i!=n){
cnt++;
}
}
if(cnt%2==1){
cout<<"Bob"<<endl;
}else{
cout<<"Alice"<<endl;
}
return;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cin>>T;
while(T--){
solve();
}
return 0;
}

京公网安备 11010502036488号