摘要: http://acm.hust.edu.cn/vjudge/contest/122814#problem/H 这道题就是求异或之和 知识点: a^b = c 等价于 b^c =a 和 a^c = b 阅读全文
posted @ 2016-07-19 17:30 qlky 阅读(205) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5012 保存骰子的状态,然后用dfs或者bfs搜索 还是再讲一下dfs 我们的目标是找一个与b相同,且转次数最少的状态 dfs就是树状图,要明确每个状态下的分支,以及边界条件 有4种变换,所以每个状态下面有四种分支 阅读全文
posted @ 2016-07-19 17:17 qlky 阅读(475) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/exponent/articles/2141477.html http://acm.hust.edu.cn/vjudge/contest/122814#problem/E 阅读全文
posted @ 2016-07-19 17:12 qlky 阅读(185) 评论(0) 推荐(0) 编辑
摘要: http://acm.hust.edu.cn/vjudge/contest/122814#problem/A 匹配到字符串就输出,水题,主要是substr的运用 阅读全文
posted @ 2016-07-19 17:09 qlky 阅读(244) 评论(0) 推荐(0) 编辑