d*****q 发帖数: 849 | 1 【 以下文字转载自 JobHunting 讨论区 】
发信人: HNM (如是我闻), 信区: JobHunting
标 题: 再来一个brainteaser
发信站: BBS 未名空间站 (Thu Dec 3 03:56:15 2009, 美东)
感觉有点像one-pile Nim,但是没想通...
大伙说说看.
There are N egg baskets and the number of eggs in each basket is a known qua
ntity. Two players take turns to remove these eggs from the baskets. On each
turn, a player must remove at least one egg, and may remove any number of e
ggs provided they all belong to the same basket. The player picking the last
egg(s) wins the game. If you are | h*****0 发帖数: 4889 | 2 2进制,异或
qua
each
e
last
【在 d*****q 的大作中提到】 : 【 以下文字转载自 JobHunting 讨论区 】 : 发信人: HNM (如是我闻), 信区: JobHunting : 标 题: 再来一个brainteaser : 发信站: BBS 未名空间站 (Thu Dec 3 03:56:15 2009, 美东) : 感觉有点像one-pile Nim,但是没想通... : 大伙说说看. : There are N egg baskets and the number of eggs in each basket is a known qua : ntity. Two players take turns to remove these eggs from the baskets. On each : turn, a player must remove at least one egg, and may remove any number of e : ggs provided they all belong to the same basket. The player picking the last
| d*****q 发帖数: 849 | 3 解释解释?
【在 h*****0 的大作中提到】 : 2进制,异或 : : qua : each : e : last
| h*****0 发帖数: 4889 | 4 每堆数目二进制表示,异或之后得0就败,不是0就可以胜。
【在 d*****q 的大作中提到】 : 解释解释?
|
|