mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
26 lines
404 B
C++
26 lines
404 B
C++
|
#include<stdio.h>
|
||
|
int main ()
|
||
|
{
|
||
|
int i,s,n,a,t;
|
||
|
scanf("%d",&t);
|
||
|
while(t--)
|
||
|
{
|
||
|
scanf("%d",&n);
|
||
|
for(s=0,i=1;i<=n;i++)
|
||
|
{
|
||
|
scanf("%d",&a);
|
||
|
if(a%4==0)
|
||
|
s^=(a-1);
|
||
|
else if(a%4==3)
|
||
|
s^=(a+1);
|
||
|
else
|
||
|
s^=a;
|
||
|
}
|
||
|
if(s)
|
||
|
printf("Alice\n");
|
||
|
else
|
||
|
printf("Bob\n");
|
||
|
}
|
||
|
return 0;
|
||
|
}
|