#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int num=1e3+10;
int a[num];
int main()
{
int t,n,c,ans;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
for(int i=1;i<=n;i++)
scanf("%d",&a[i]);
sort(a+1,a+n+1);
ans=0;
if(n%2){
ans^=(a[1]-1);c=2;
}
else c=1;
for(int i=c;i<=n;i+=2)
{
ans^=(a[i+1]-a[i]-1);
}
printf(ans?"Georgia will win\n":"Bob will win\n");
}
return 0;
}
Georgia and Bob POJ - 1704
最新推荐文章于 2022-02-02 21:10:30 发布