![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++ 组合游戏
泛友
这个作者很懒,什么都没留下…
展开
-
hdu 1850 Being a Good Boy in Spring Festival(组合游戏-博弈)
问题描述:下面是一个二人小游戏:桌子上有M堆扑克牌;每堆牌的数量分别为Ni(i=1…M);两人轮流进行;每走一步可以任意选择一堆并取走其中的任意张牌;桌子上的扑克全部取光,则游戏结束;最后一次取牌的人为胜者。现在我们不想研究到底先手为胜还是为负,我只想问大家:——“先手的人如果想赢,第一步有几种选择呢?”输入:输入数据包含多个测试用例,每个测试用例占2行,首先一行包含一个整原创 2014-01-10 10:30:12 · 490 阅读 · 0 评论 -
hdu 2147 kiki‘game(组合游戏-博弈)
问题描述:Recently kiki has nothing to do. While she is bored, an idea appears in his mind, she just playes the checkerboard game.The size of the chesserboard is n*m.First of all, a coin is placed in the原创 2014-01-10 10:34:51 · 663 阅读 · 0 评论