摘要:
1 #include 2 #include 3 const int N = 100; 4 int step[N];//可以走的步数 5 int SG[N]; 6 bool hash[N]; 7 void getSG(int n, int len)//step的长度 8 { 9 int ... 阅读全文
posted @ 2015-03-25 20:25
justPassBy
阅读(182)
评论(0)
推荐(0)
摘要:
给定n堆石子,每次每人能从一堆石子中取若干个石子(不能不取),最后不能取石子者败对于这个游戏,我们要判断的是,给定局势下,先手者胜还是败设先手胜的局势为N-postion,先手败的局势为P-postion可以移动到P-postion的局势叫做N-postion,只能移动到N-postion的局势叫做... 阅读全文
posted @ 2015-03-25 18:37
justPassBy
阅读(297)
评论(0)
推荐(0)

浙公网安备 33010602011771号