博弈。。。

/*
博弈
对于当前人来说,如果完成自己的操作后,若mat[n][m]==0,则自己是胜者。
因为 如果mat其他位置不存在1了,肯定自己胜;如果存在1,则让下一位去反转那个1.
*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<algorithm>
#include<iostream>
#include<queue>
#include<map>
#include<stack>
#include<set>
#include<math.h>
using namespace std;
typedef long long int64;
//typedef __int64 int64;
typedef pair<int64,int64> PII;
#define MP(a,b) make_pair((a),(b))
const int maxn = 105;
const int inf = 0x7fffffff;
const double pi=acos(-1.0);
const double eps = 1e-8; int main(){
int T;
scanf("%d",&T);
while( T-- ){
int n,m;
scanf("%d%d",&n,&m);
int tt;
for( int i=0;i<n;i++ )
for( int j=0;j<m;j++ )
scanf("%d",&tt);
if( tt==1 ) printf("Alice\n");
else printf("Bob\n");
}
return 0;
}

最新文章

  1. ABP框架 - 多层结构
  2. Oracle数据库,数据的增、删、改、查
  3. JavaScriptSerializer 序列化json 时间格式
  4. php webservice
  5. AngularJS启动过程分析
  6. HTML页面实现返回顶部效果 go to top
  7. SQL SERVER 分布式事务(DTC)
  8. Snort规则中的逻辑关系
  9. 浅析python的string.Template
  10. Lync激活用户遇到ConstraintViolationNoLeadingOrTrailingWhitespace错误
  11. Linux内核分析笔记 与Linux内核开发理论
  12. 【转】C++中的虚函数的实现
  13. 01_根据Id查询User的数据
  14. windows下强大的wmic命令行工具
  15. 读书笔记 effective c++ Item 27 尽量少使用转型(casting)
  16. Bugku 杂项 眼见非实
  17. 使用docker部署springboot应用
  18. .gitinore配置失效问题
  19. Mac 上卸载 Java
  20. 创建 elasticsearch 用户

热门文章

  1. misaka and last order SCU - 4489 (筛法的灵活应用)
  2. HDU 1325(并查集)
  3. 【BZOJ 2119】 2119: 股市的预测 (后缀数组+分块+RMQ)
  4. [转]php-fpm - 启动参数及重要配置详解
  5. 51nod 1225 余数之和 数论
  6. jmeter用beanshell调用自己写的jar进行MD5加密
  7. 发展中的生命力——Leo鉴书69
  8. Wifi模块的工作原理
  9. Read UNIQUE ID and flash size method for stm32
  10. spingBoot-自定义过滤器