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 · 4032 阅读 · 1 评论 -
bfs 2016.3.6
1、HDU 1548 A strange liftProblem 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 · 379 阅读 · 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 · 440 阅读 · 0 评论