![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
文章平均质量分 84
geekword
无无无
展开
-
HDU1312 BFS-Numerically Speaking
Description There 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 tiles.原创 2016-07-30 08:59:24 · 276 阅读 · 0 评论 -
POJ 3126 BFS-Prime Path
Description 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原创 2016-08-02 16:28:51 · 198 阅读 · 0 评论 -
POJ 1426 BFS-Find The Multiple
Description Given 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 than 2原创 2016-08-02 16:35:04 · 216 阅读 · 0 评论 -
CodeForces 689B BFS-Mike and Shortcuts
DescriptionRecently, Mike was very busy with studying for exams and contests. Now he is going to chill a bit by doing some sight seeing in the city.City consists of n intersections numbered from 1 to n原创 2016-08-02 16:47:12 · 335 阅读 · 0 评论 -
HDU 1241 BFS-Oil Deposits
DescriptionGeoSurvComp地质调查公司负责探测地下石油储藏。 GeoSurvComp现在在一块矩形区域探测石油,并把这个大区域分成了很多小块。他们通过专业设备,来分析每个小块中是否蕴藏石油。如果这些蕴藏石油的小方格相邻,那么他们被认为是同一油藏的一部分。在这块矩形区域,可能有很多油藏。你的任务是确定有多少不同的油藏。Input输入可能有多个矩形区域(即可能有多组测试)。每个矩形区域原创 2016-08-02 16:50:28 · 306 阅读 · 0 评论