1920. Divide The Stones
来源:互联网 发布:mac草图大师 编辑:程序博客网 时间:2024/06/01 20:59
//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;}
- 1920. Divide The Stones
- Sicily 1920. Divide The Stones
- Sicily 1920 Divide The Stones
- Quantity Of The Stones
- Stones on the Table
- Stones on the Table
- A. Stones on the Table
- hdu 4573 Throw the Stones
- poj 3400 Dropping the stones
- coderforces Stones on the Table
- Chef -- Divide the Tangerine
- Divide the Sequence
- Divide the Sequence
- uva10256 The Great Divide
- Divide the Sequence
- Stones
- Stones
- Stones
- 判别模型、生成模型与朴素贝叶斯方法
- Apache优化3
- do…while(0)的妙用
- 如何给Linux操作系统减肥上
- hdu1391
- 1920. Divide The Stones
- SVM(1)
- QT210开发板连接不上ActiveSync问题
- cocos2d-x CCScrollView和CCTableView的使用
- machine.run源码阅读记录---流水帐(二)
- SVM(2)
- SVM(4)
- XML C#常用操作
- mysql存储过程实例