
优先深度搜索
文章平均质量分 79
xgogoforit
这个作者很懒,什么都没留下…
展开
-
POJ2386水洼问题 优先深度搜索
题目连接http://poj.org/problem?id=2386DescriptionDue to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100)原创 2016-03-12 09:41:01 · 1227 阅读 · 0 评论 -
CDOJ 24点游戏
题目连接http://acm.uestc.edu.cn/#/problem/show/1252Description24点就是给你一串数字,问你是否通过加减乘除括号构成24点。 沈爷觉得这个很好玩,就决定考考你,给你4个数,可以交换位置,可以用加减乘除和括号,是否能构成24点呢? 注意哦~这里的除法并不是整数除法,比如样例Input第一行T,表示有多少组测试数据,1≤T≤50接下来T行,每行4个原创 2016-03-27 22:21:51 · 604 阅读 · 0 评论 -
POJ 1979 红与黑 优先深度搜索
题目连接http://poj.org/problem?id=1979DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can mov原创 2016-03-27 22:31:25 · 352 阅读 · 0 评论 -
CF IndiaHack B 深度优先搜索
题目连接http://codeforces.com/contest/653/problem/BDescriptionLimak is a little polar bear. Polar bears hate long strings and thus they like to compress them. You should also know that Limak is so young th原创 2016-03-22 20:26:01 · 383 阅读 · 0 评论