摘要: 数据出水了,直接bfs也能过。下面是我写的缩点+bfs的方法。View Code /*Source CodeProblem: 1003Username: 2010201211Run Time: 36MSMemory: 5188KLanguage:C++JudgeStatus: Accepted*/#include <iostream>#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;#define V 1005#define E 1005000 阅读全文