摘要: link 思路: 不可以bfs求最短路!因为到达中间点的最短路可能不唯一,无法取舍,而且中间点的选择会影响到后面点,必须全部考虑中间点的情况。 只能dfs了。 #include <iostream> #include <cstring> #include <vector> #include <uno 阅读全文
posted @ 2020-03-16 18:39 feibilun 阅读(129) 评论(0) 推荐(0)