首页 > 代码库 > HDU 4642 Fliping game

HDU 4642 Fliping game

 1 #include<iostream>
 2 #include<cstdio>
 3 #include<cstring>
 4 #include<algorithm>
 5 
 6 using namespace std;
 7 
 8 int n,m;
 9 
10 int main(){
11 
12 
13 
14     int t;
15     scanf("%d",&t);
16     while(t--){
17         scanf("%d%d",&n,&m);
18         int x;
19         for(int i=0;i<n;i++)
20             for(int j=0;j<m;j++)
21                 scanf("%d",&x);
22         if(x)
23             puts("Alice");
24         else
25             puts("Bob");
26     }
27     return 0;
28 }

 

HDU 4642 Fliping game