hdu 1525 Euclids Game 博弈~~需要分析一下

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): 25 711 74 74 31 31 0 an Stan wins.

,美好的生命应该充满期待、惊喜和感激

hdu 1525 Euclids Game 博弈~~需要分析一下

相关文章:

你感兴趣的文章:

标签云: