摘要: 题意,一条数轴上,告诉你起点和终点,只能向前走1,向后走1,或者走到二倍的现在的位置,每次都耗时一分钟。问从起点到终点的最短时长。 简单地bfs #include <iostream> #include <algorithm> #include <cstdio> #include <map> #in 阅读全文
posted @ 2016-02-11 10:27 GeniusYang 阅读(173) 评论(0) 推荐(0) 编辑