摘要: 1 /* 2 HDU1850 Being a Good Boy in Spring Festival 3 http://acm.hdu.edu.cn/showproblem.php?pid=1850 4 博弈论 尼姆博弈 5 6 7 尼姆博弈:异或和为0则先手必败,否则先手必胜 8 * 9 * 10 */ 11 #include 12 #include 1... 阅读全文
posted @ 2017-03-16 19:43 BBBob 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU2516 取石子游戏 3 http://acm.hdu.edu.cn/showproblem.php?pid=2516 4 博弈论 斐波那契博弈 5 * 6 * 7 * 8 */ 9 #include 10 #include 11 #include 12 #include 13 #include 14 //#define test 1... 阅读全文
posted @ 2017-03-16 19:21 BBBob 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU2188 选拔志愿者 3 http://acm.hdu.edu.cn/showproblem.php?pid=2188 4 博弈论 巴什博奕 5 巴什博奕要注意n 12 int main() 13 { 14 int t; 15 scanf("%d",&t); 16 while(t--) 17 { 18 int ... 阅读全文
posted @ 2017-03-16 11:24 BBBob 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU2149 Public Sale 3 http://acm.hdu.edu.cn/showproblem.php?pid=2149 4 博弈论 巴什博奕 5 * 6 * 7 * 8 */ 9 10 11 #include 12 int main() 13 { 14 int m,n; 15 while(scanf("%d%d... 阅读全文
posted @ 2017-03-16 11:18 BBBob 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU2147 kiki's game 3 博弈论 巴什博奕 4 http://acm.hdu.edu.cn/showproblem.php?pid=2147 5 题意:在一个n×m的棋盘上,初始棋子放在右上角, 6 先走到左下角的胜 7 打出胜负表: 8 n:必胜态 9 p:必败态 10 11 n n n n n 12 p ... 阅读全文
posted @ 2017-03-16 10:59 BBBob 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 HDU1846 Brave Game http://acm.hdu.edu.cn/showproblem.php?pid=1846 3 博弈论 巴什博奕 4 * 5 * 6 * 7 * 8 */ 9 #include 10 int main() 11 { 12 int t; 13 scanf("%d",&t); 14 int ... 阅读全文
posted @ 2017-03-16 08:13 BBBob 阅读(95) 评论(0) 推荐(0) 编辑