[更新] Nim游戏的经验: 每次最多取m个——%(m+1) 阶梯nim——奇数位无视,看偶数位互相独立,成一堆一堆的石子 . . . . 既然被征召去汇总算法..那么挑个简单点的SG函数好了.. 介绍:{ SG函数是解Nim游戏的一个很好的...'思路'么? Nim游戏是博弈论的一个经典模型,指两个人轮流操作,且双方的操作条件一样(如:中国象棋就不是,因为先手只能动黑子,不能动红子),不能操作的人输(大多是这样..) ..在这个前提下,一个'当前局面'就可以用某个SG值来表示. } 简单的性质…