Two players play a game with at least two piles of stones. The players alternately take stones from one or more piles, subject to:
the total number of stones taken is equal to the size of the smallest pile before the move;
the move cannot take all the stones from a pile.
The player that is unable to move loses.
For example, if the piles are of sizes 2, 2 and 4 then there are four possible moves.
Let
Define
Find
两位玩家用至少两堆石子玩游戏,两人须在遵守如下规则的同时,轮流从一个石堆或者两个石堆中取石子:
玩家本轮取走的石子总数需等于该轮开始前,含有较少石子的石堆中的石子数。
不能把其中任何一个石堆取空。
首先无法操作的玩家落败。
例如,倘若初始时有各含 2、2、4 枚石子的三个石堆,那么此时先手有四种可行操作:
记
记
求
点 这个链接 回到源站。
点 这个链接 回到详细版题目目录。