![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
学算法的小菜鸟
欢迎大家一起交流算法
展开
-
蓝桥杯ADV-147 学霸的迷宫 (BFS)
问题描述 学霸抢走了大家的作业,班长为了帮同学们找回作业,决定去找学霸决斗。但学霸为了不要别人打扰,住在一个城堡里,城堡外面是一个二维的格子迷宫,要进城堡必须得先通过迷宫。因为班长还有妹子要陪,磨刀不误砍柴功,他为了节约时间,从线人那里搞到了迷宫的地图,准备提前计算最短的路线。可是他现在正向妹子解释这件事情,于是就委托你帮他找一条最短的路线。输入格式 第一行两个整数n, m,为迷宫的长宽...原创 2020-02-23 16:09:56 · 282 阅读 · 0 评论 -
poj1426:Find The Multiple
总时间限制: 1000ms 内存限制: 65536kB描述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...原创 2020-02-05 21:16:58 · 120 阅读 · 0 评论 -
HDU1312 Red and Black
Problem DescriptionThere 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 adjacen...原创 2020-02-05 20:27:25 · 100 阅读 · 0 评论 -
第10届蓝桥杯省赛B组迷宫
题目: 试题 E: 迷宫 【问题描述】下图给出了一个迷宫的平面图,其中标记为 1 的为障碍,标记为 0 的以通行的地方。 010000 000100 001001 110000 迷宫的入口为左上角,出口为右下角,在迷宫中,只能从一个位置走个它的上、下、左、右四个方向之一。对于上面的迷宫, 从入口开始,可以按DRRURRD...原创 2019-07-24 16:42:23 · 190 阅读 · 0 评论