阅读背景:

HDU 1525 (简单博弈问题)

来源:互联网 
 Problem Description Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple of the lesser of the two numbers from the greater of the two numbers, provided that the resulting number must be nonnegative. Then Ollie, the second player, does the same with the two resulting numbers, then Stan, etc., alternately, until one player is able to subtract a multiple of the lesser number from the greater to reach 0, and thereby wins. For example, the players may start with (25,7): Two players, Stan and Ollie


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: