^m
路漫漫
摘要: Cutting Game Description Urej loves to play various types of dull games. He usually asks other people to play with him. He says that playing those gam 阅读全文
posted @ 2018-03-17 19:38 ^m 阅读(133) 评论(1) 推荐(0) 编辑
摘要: 题意:给定n张牌,两个人轮流摸牌,每次摸牌张数为2的幂次,问先手胜还是后手胜 n≤1000 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1847 1 #include<iostream> 2 #include<cstdio> 3 #include<a 阅读全文
posted @ 2018-03-17 11:34 ^m 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题意:三堆石子,每次能拿走斐波那契数个石子,先取完石子胜,问先手胜还是后手胜 石子个数<=1000 多组数据 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1848 1 #include<iostream> 2 #include<cstdio> 3 # 阅读全文
posted @ 2018-03-17 11:11 ^m 阅读(105) 评论(0) 推荐(0) 编辑