bfs
文章平均质量分 81
__AiR_H
智障蒟蒻,蠢哭。。。QwQ
展开
-
bfs 2016.5.2
1、HDU 2612 Find a way 题意: Y和M去KFC见面,有很多KFC,帮他们找一个KFC使得他们花费的时间总和最小 解题思路: 两次 bfs 分别找出他们到达他们都能到达的所有的KFC的最短时间 然后比较他们花费时间的和找出最小 #include #include #include #include using namespace std;原创 2016-05-02 01:36:29 · 4011 阅读 · 1 评论 -
bfs 2016.3.6
1、HDU 1548 A strange lift Problem Description There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 Here comes the problem: when you are on floor A,an原创 2016-03-10 12:29:15 · 365 阅读 · 0 评论 -
bfs 2017.2.19
1、UESTC 149 解救小Q 因为有可能传送后需要再回来才能找到 Q,所以每次遇到传送门时只标记当前这个传送门,那么就有可能再传送回来 刚开始以为标记当前传送门以后就回不来了,写的一塌糊涂... #include #include #include #include #include #include #include #include #include #incl原创 2016-07-14 09:20:40 · 425 阅读 · 0 评论