摘要: 博弈论 题解:http://blog.sina.com.cn/s/blog_7cb4384d0100qs7f.html 感觉本题关键是要想到【当a-b>b时先手必胜】,后面的就只跟奇偶性有关了 1 //POJ 2348 2 #include 3 #include 4 bool game(int ... 阅读全文
posted @ 2015-02-23 12:11 Tunix 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/celia01/archive/2011/11/15/2250171.html【以下内容为转载】上次做poj 1067的取石子游戏,只用到了whthoff博弈,未涉及到取石子的异或方法,今天重新搜索,整理了一遍。搜罗各种资料,加上自己整理,终于成篇... 阅读全文
posted @ 2015-02-23 11:36 Tunix 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 博弈论 这个是博弈游戏中的Wythoff博弈:以下为我的代码: 1 //POJ 1067 2 #include 3 #include 4 #include 5 int main(){ 6 freopen("1067.in","r",stdin); 7 int a,b; 8 ... 阅读全文
posted @ 2015-02-23 11:34 Tunix 阅读(180) 评论(0) 推荐(0) 编辑