A Chess Game Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 3791 Accepted: 1549 Description Let's design a new chess game. There are N positions to hold M chesses in this game. Multiple chesses can be located in the same position. The…
链接:http://poj.org/problem?id=2960 #include<stdio.h> #include<string.h> ; ; int SG[N];//SG[i]记录一堆i颗石子的SG状态 int s[M];//存储可选取的石子数目集合 int k;//s[]集合中的元素个数 int mex(int x) { )return SG[x]; }; ; i<k; ++ i ){ if( s[i] <= x ){ vi[mex(x-s[i])]=; }…
A Chess Game Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 3551 Accepted: 1440 Description Let's design a new chess game. There are N positions to hold M chesses in this game. Multiple chesses can be located in the same position. The…