DFS
O(N + M)
void dfs (int v)
S
N
M
U
i
Vi 提供了
g[i][j]
j
used
1000 ms 32 Mb Rules for program design and list of errors in automatic problem checking