![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
博弈拓展题
Sugarrate
这个作者很懒,什么都没留下…
展开
-
Euclid‘s Game HDU - 1525
Euclid’s Game HDU - 1525HDU - 1525体面描述Problem DescriptionTwo 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,原创 2020-10-24 10:38:46 · 325 阅读 · 0 评论 -
HDU(航电)2177——取(2堆)石子游戏
原题链接hdu—2177 取(2堆)石子游戏题面有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。如果你胜,你第1次怎样取子?Input输入包含若干行,表示若干种石子的初始情况,其中每一行包含两个非负整数a和b,表示两堆石子的数目,a和b都不大于1,00原创 2020-08-05 11:22:00 · 922 阅读 · 0 评论