摘要: UVA-208 天道好轮回。UVA饶过谁。 就是一个图的DFS。 不过这个图的边太多,要事先判一下起点和终点是否联通(我喜欢用并查集),否则会TLE。 #include <iostream> #include <cstdio> #include <vector> #include <cstring> 阅读全文
posted @ 2017-12-14 18:13 jvruodejrLS 阅读(121) 评论(0) 推荐(0) 编辑

Contact with me