
博弈
文章平均质量分 83
nare123
这个作者很懒,什么都没留下…
展开
-
codeforces705B B. Spider Man
B. Spider Man time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Peter Parker wants to play a game with Dr. Oc原创 2016-08-08 14:56:19 · 431 阅读 · 0 评论 -
SG函数与组合博弈问题
把组合博弈问题抽象成一个有向无环图,有n个棋子在上面移动,当AB两方其中一方移动不了时另一方获胜. 定义mex运算为集合内没有出现过的最小的自然数,则SG(x)=mex{SG(y)(其中y为x所扩展出的状态)} 结论:当有K组的博弈时若SG(n1)^SG(n2)^..SG(nK)!=0时先手获胜,否则后手获胜. CF上的一道题: A. The game of Osho time li原创 2017-03-13 23:39:12 · 495 阅读 · 0 评论