DFS
文章平均质量分 85
ACM菜鸟进行时
这个作者很懒,什么都没留下…
展开
-
HDU 1010 Tempter of the Bone
Tempter of the BoneProblem DescriptionThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel th原创 2016-07-18 20:12:03 · 181 阅读 · 0 评论 -
HDU 1258 Sum It Up
Sum It UpProblem DescriptionGiven a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,原创 2016-07-18 19:43:06 · 198 阅读 · 0 评论 -
HDU 2553 N皇后问题
N皇后问题题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若干行,每行原创 2016-07-17 11:47:47 · 177 阅读 · 0 评论 -
POJ_2488: A Knight's Journey
题目链接:http://poj.org/problem?id=2488POJ 2488 DFS原创 2016-07-16 11:03:09 · 313 阅读 · 0 评论