寒假程序翻译1.26

https://acs.jxnu.edu.cn/problem/ICPCJX2020J

Split Game

 1000ms  131072K

描述:

Alice and Bob like to cut paper, but they only have one piece of new paper. Both of them want to use this one, but no one wants to split the new paper. Therefore, Alice and Bob decide to fight...in a game.

Alice Bob想要去剪纸,但是他们只有一张纸。他们俩都想用这张纸,却不愿意把这张纸撕成俩半。于是他们决定以一场游戏的方式决定谁去使用。)

Alice find an old rectangular paper that consists of N*M grids. Two players take turns and Alice goes first. In each round of action, the player chooses a piece of paper and splits it horizontally or vertically along the grid line. If one player splits out a piece of paper with a single grid, he or she will lose the game. Alice and Bob are smart, and both of them want to win the game. Now you know the size of paper, please predict who will win.

Alice找到一个旧的长方形纸片其中包含了N*M个格子。两个参与者轮流并且Alice首先。在每次回合中,参与者选择一张纸并且水平或者垂直沿着格子地撕裂它。如果参与者撕裂这张纸片并且只剩下一个格子,那么他就输掉了这场游戏。Alice Bob 都想赢这场游戏,现在你知道这张纸的尺寸,请预测谁将赢。)

输入:

Each line contains two integer numbers NN and MM, Process to end of file. (1<=N,M<=150,NM>1)(1<=N,M<=150,NM>1)

(每行包括两个整数数字,处理到文件末尾。)

输出:

For each case, output the name of the winner.

(对于每个例子,输出这个赢家的名字。)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值