求连通分量 Time Limit:1000MS Memory Limit:65536K Description 求一个图的连通分量 Input n 顶点数(<=100) Output 连通分量 Sample Input
5
1 2
3 4
2 3
0 0
Sample Output
4
Source elba var |
求连通分量
最新推荐文章于 2021-12-16 11:05:23 发布
求连通分量 Time Limit:1000MS Memory Limit:65536K Description 求一个图的连通分量 Input n 顶点数(<=100) Output 连通分量 Sample Input
5
1 2
3 4
2 3
0 0
Sample Output
4
Source elba var |