![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
Achanss
My life is good, and u just make it better!
展开
-
YTU 3166: 共享单车
Description 共享单车走进烟台,小明决定尝试。小明启动共享单车app,轻松地找到附近的单车。那么问题来了,到最近的那辆单车,小明大约要走多少米呢? 现在简化问题。将地图设定成一个由100米*100米的像素块组成的二维平面区域。如果一个方块内有单车,则像素块显示为字符“x”;如果此方块内是可以通行的路,则显示为“.”;再如果方块是建筑物,则显示为“*”,建筑物不能通行。 小明在...原创 2017-06-02 16:27:05 · 934 阅读 · 0 评论 -
51nod 1109_N的01倍数
1109 01组成的N的倍数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 给定一个自然数N,找出一个M,使得M > 0且M是N的倍数,并且M的10进制表示只包含0或1。求最小的M。 例如:N = 4,M = 100。 Input 输入1个数N。(1 <= N <= 10^6) Output 输出符合条件的最小的M。 In...转载 2018-09-13 19:56:06 · 219 阅读 · 0 评论 -
CodeForce 1064-D. Labyrinth(双端队列)
D. Labyrinth time limit per test2 seconds memory limit per test512 megabytes inputstandard input outputstandard output You are playing some computer game. One of its levels puts you in a maze consisti...原创 2018-10-15 17:17:44 · 579 阅读 · 0 评论