Two players play a game with a number of piles of stones, alternating turns. Each turn a player can choose to remove 1, 2, 4, or 9 stones from a single pile; or alternatively they can choose to split a pile containing two or more stones into two non-empty piles. The winner is the player who removes the last stone.
A collection of piles is called a losing position if the player to move cannot force a win with optimal play. Define
You are given
Find
两位玩家正在玩取石子游戏。他们面前有几堆石子,二人轮流进行如下操作之一:
从一堆石子中取走 1、2、4 或 9 枚石子。
将含有
取走最后一枚石子的玩家胜。
如果若干堆石子满足:以这些石子为初始状态,先手采取最佳策略时无法保证获胜,则称这若干堆石子是失败态。记
已知
求
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。