![](https://img-blog.csdnimg.cn/20190927151043371.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
搜索(BFS+DFS)
BFS + DFS
子i珮
好好学习
展开
-
HDU1241 Oil Deposits(DFS)
Oil DepositsHEREDescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and...原创 2020-02-13 20:34:36 · 113 阅读 · 0 评论 -
POJ3414 Pots(BFS)
PotsDescriptionInputOutputSample InputSample Output思路代码tips:原创 2020-02-13 17:56:08 · 108 阅读 · 0 评论 -
POJ3126 Prime Path(BFS+数论)【模板】
Prime PathHEREDescriptionThe 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 off...原创 2020-02-13 17:42:10 · 92 阅读 · 0 评论 -
POJ1426 Find The Multiple(BFS+数论)【★】
Find The MultipleHEREDescriptionGiven 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...原创 2020-02-13 17:22:33 · 150 阅读 · 0 评论 -
POJ3279 Fliptile(DFS+思维+二进制加速)
FliptileHEREDescriptionFarmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N g...原创 2020-02-13 16:43:45 · 157 阅读 · 0 评论 -
POJ3278 Catch That Cow(BFS)【模板】
Catch That CowHEREDescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the c...原创 2020-02-13 15:48:43 · 77 阅读 · 0 评论 -
POJ1321 棋盘问题(DFS)【模板】
棋盘问题HEREDescription在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。...原创 2020-02-13 15:17:06 · 149 阅读 · 0 评论