摘要: 题目: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 阅读全文
posted @ 2013-05-16 14:27 Roly Yu 阅读(170) 评论(0) 推荐(0) 编辑