码迷,mamicode.com
首页 >  
搜索关键字:hdu1851    ( 2个结果
hdu1851 A Simple Game bash博弈+Nim博弈
Problem Description Agrael likes play a simple game with his friend Animal during the classes. In this Game there are n piles of stones numbered from 1 to n, the 1st pile has M1 stones, the 2nd pile has M2 stones, ... and the n-th pile contain Mn stones. A...
分类:其他好文   时间:2015-03-30 16:33:51    阅读次数:141
HDU1851 A Simple Game
一个关于SG的博弈游戏,对于某个堆有$M_i$和$L_i$,那么这个堆的SG值为$$SG_i = M_i \%(L_i+1)$$为什么这道题的$SG$函数就是这样子的呢?四个字:手算打表!!$Let's \quad Review \quad The \quad Defination \quad Of...
分类:其他好文   时间:2014-12-01 00:50:16    阅读次数:242
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!