![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS||DFS
文章平均质量分 88
「已注销」
这个作者很懒,什么都没留下…
展开
-
hdu 1973 Prime Path (bfs)
hdu 1973 Prime Path (bfs)Problem DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room原创 2017-10-24 19:15:47 · 221 阅读 · 0 评论 -
uva572 Oil Deposits
Oil Deposits输入一个m行n列的字符矩阵,统计字符“@”组成多少个八连块。如果两个字符“@”所在的格子相邻(横、竖或者对角线方向),就说它们属于同一个八连块。Sample Input1 1 * 3 5 *@*@* **@** *@*@* 1 8 @@****@* 5 5 ****@ *@@*@ *@**@ @@@*@ @@*原创 2017-10-25 13:45:08 · 181 阅读 · 0 评论 -
poj2251 Dungeon Master
Dungeon MasterYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one u原创 2017-10-24 19:48:16 · 209 阅读 · 0 评论 -
poj1979 Red and Black
Red and BlackThere 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 move to one of four adjacent til原创 2017-10-24 19:47:37 · 168 阅读 · 0 评论 -
poj1426 Find The Multiple
Find The MultipleGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater原创 2017-10-24 19:46:57 · 312 阅读 · 0 评论 -
hdu2717 Catch That Cow
Catch That CowFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN (0 ≤ N ≤ 100,000) on a number line and the cow is at a point原创 2017-10-24 19:45:00 · 274 阅读 · 0 评论 -
HDU-1242-Rescue
RescueAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Angel's friend原创 2017-10-24 19:39:41 · 203 阅读 · 0 评论 -
hdu1195Open the Lock
Open the LockNow an emergent task for you is to open a password lock. The password is consisted of four digits. Each digit is numbered from 1 to 9.Each time, you can add or minus 1 to any digit.原创 2017-10-24 19:39:06 · 280 阅读 · 0 评论 -
hdu1010 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 the原创 2017-10-24 19:21:19 · 171 阅读 · 0 评论 -
HDU1016 Prime Ring Problem
Prime Ring ProblemA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prim原创 2017-10-24 19:33:47 · 252 阅读 · 0 评论