http://www.bnuoj.com/bnuoj/problem_show.php?pid=4353

【题意】:每次选择一个小格后,该小格的右上部分就全被删去了,且要求每次至少删去一个格子,选中左下角格子的人算输。

【题解】:这个题嘛,这个题嘛,这个题嘛,还是看代码吧,不解释。。。

【code】:

 

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

 


 

 

相关文章:

  • 2021-07-17
  • 2021-10-06
  • 2021-09-02
  • 2022-02-14
  • 2021-12-04
  • 2021-07-19
  • 2022-02-24
  • 2021-12-04
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案