![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单搜索
deebcjrb
这个作者很懒,什么都没留下…
展开
-
(kuangbin带你飞--简单搜索)Dungeon Master (三维bfs)
原题目:You 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 unit north,...原创 2020-02-14 19:02:35 · 106 阅读 · 0 评论 -
(kuangbin带你飞--简单搜索)棋盘问题 poj1321
原题目:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k &l...原创 2019-12-08 19:22:21 · 85 阅读 · 0 评论 -
(kuangbin带你飞--简单搜索)Pots POJ3414
原题目:You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:1.FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;2.DROP(i) em...原创 2019-07-23 15:51:44 · 117 阅读 · 0 评论 -
(kuangbin带你飞--简单搜索)Fire Game FZU2150
原题目:Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is consisting of grass or just empty and then they...原创 2019-07-23 18:13:55 · 148 阅读 · 3 评论 -
(kuangbin带你飞--简单搜索)Shuffle'm Up POJ3087
原题目:A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack containing C...原创 2019-07-23 10:30:21 · 87 阅读 · 0 评论 -
(kuangbin带你飞--简单搜索)Prime Path POJ3126
原题目:The 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 numbers on their offices.— It is a matter ...原创 2019-07-23 10:42:53 · 154 阅读 · 0 评论