ZOJ 3666 Alice and Bob
摘要:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3666ZOJ 2012年11月月赛的A题看到Alice和Bob这两个名字就猜到是博弈的题目了一个包含n(n <= 10000)个节点有向无环图上有m个可以移动的点,两名玩家轮流移动一个点,第一个不能改变移动局面的玩家输掉比赛经典的博弈题目,整个局面的sg值为所有单个游戏g值异或的结果 1 #include<stdio.h> 2 #include<iostream> 3 #include<string.h> 4 #include&l
阅读全文
posted @ 2012-11-25 19:34
浙公网安备 33010602011771号