
BFS&&DFS
文章平均质量分 87
林夕_
越努力 越幸运,虽一路上无人可依,但要走的无谓。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【llightoj】1141-Number Transformation BFS+查找质因子
点击打开链接 In this problem, you are given an integer number s. You can transform any integer number A to another integer number B by adding x to A. This x is an integer number which is a prime fac原创 2017-08-05 13:10:43 · 226 阅读 · 0 评论 -
【HDUOJ]1010-Tempter of bone DFS+剪枝
点击打开链接 The 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 ground sinking. He realized that t原创 2017-08-05 13:34:50 · 310 阅读 · 0 评论 -
【Codeforces-723D】Lake in Berland
点击打开链接 The map of Berland is a rectangle of the size n × m, which consists of cells of size 1 × 1. Each cell is either land or water. The map is surrounded by the ocean. Lakes are the maximal re原创 2017-08-05 13:57:07 · 329 阅读 · 0 评论 -
【HDUOJ1241】bfs&&dfs
点击打开链接 The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid that di原创 2017-08-05 13:48:34 · 282 阅读 · 0 评论 -
【codeforce-510B】fox and two dots
Fox Ciel is playing a mobile puzzle game called “Two Dots”. The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color. We will use different upp原创 2017-08-21 09:10:45 · 359 阅读 · 0 评论