0%

HDU 4642 Fliping game (2013多校第四场K)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* 找规律发现只跟右下角的那个硬币有关
*
* */
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <queue>
#include <set>
#include <vector>
#define MID(x,y) ((x+y)>>1)
#define iabs(x) ((x)>0?(x):-(x))
using namespace std;
int main(){
int t,n,m,a;
scanf("%d", &t);
while (t--){
scanf("%d%d", &n, &m);
for (int i = 0; i < n; ++i)
for (int j = 0; j < m; ++j){
scanf("%d", &a);
}
if(a) printf("Alicen");
else printf("Bobn");
}
return 0;
}