摘要:
题目:http://acm.fzu.edu.cn/problem.php?pid=1534巴什博奕和尼姆博弈的综合。这里分为最后拿胜利,最后拿失败,分别是nim 和 anti-nim。SG(n) = n%3#include <iostream>#include <string.h>#include <stdio.h>#include <algorithm>using namespace std;const int maxn = 10005;int p[maxn];int main(){ int n; while(~scanf("%d&q 阅读全文