您的位置:首页 > 其它

1920. Divide The Stones

2013-01-08 23:11 459 查看
//a pile of n stones can be divided by n-1 times

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int t;
scanf("%d",&t);
while(t--){
int n;
int sum = 0;
int num;
scanf("%d",&n);
while( n-- ){
scanf("%d",&num);
sum += (num-1)%2;
}
if (sum%2==1)
cout<<"Alice"<<endl;
else
cout<<"Bob"<<endl;
}
return 0;
}


                                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Sicily 找规律