2014年11月23日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1721非常有趣的一道水题,注意到相隔一个点的粒子数是可以相互转移的,所以只要判红点的和与蓝点的和是否相等#include int main(){ int A,B,C,D,E,F,G,H; while(~... 阅读全文
posted @ 2014-11-23 15:48 LegendaryAC 阅读(137) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1429经典的找钥匙开门走迷宫问题,把钥匙状态压缩一下,然后对迷宫bfs#include #include #include #include #include using namespace std;int n,m... 阅读全文
posted @ 2014-11-23 15:26 LegendaryAC 阅读(131) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1622白书上6.3.2二叉树层次遍历的例题,层次遍历用bfs,建立二叉树,很基础的题目#include #include #include #include #include using namespace std... 阅读全文
posted @ 2014-11-23 11:58 LegendaryAC 阅读(332) 评论(0) 推荐(0) 编辑