dfs
文章平均质量分 65
David-Wei
这个作者很懒,什么都没留下…
展开
-
hdu 4337 King Arthur's Knights(dfs)
Problem DescriptionI am the bone of my sword. Steel is my body, and the fire is my blood.- from Fate / Stay NightYou must have known the legend of King Arthur and his knights of the round table.原创 2013-08-07 23:10:56 · 499 阅读 · 0 评论 -
hdu 2553 N皇后问题(dfs)
Problem Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。Input共有若干行,每行一个正整数N≤10,表示棋盘和皇后的数量;如果N=0,表示结束。Output共有若干行,每行一个正整数,原创 2013-08-13 16:58:07 · 470 阅读 · 0 评论 -
hdu 2821 Pusher(dfs)
Problem DescriptionPusherBoy is an online game http://www.hacker.org/push . There is an R * C grid, and there are piles of blocks on some positions. The goal is to clear the blocks by pushing into t原创 2013-08-13 23:18:39 · 732 阅读 · 0 评论