sdut Thrall’s Dream(判断任意两点是否联通)
摘要:
题意:给一张无向图,判断任意两点是否联通;思路:bfs枚举个点,逐个遍历;#include#include#include#include#includeusing namespace std;int con[2005][2005];vector v[2005];int n,m;int judge(... 阅读全文
posted @ 2015-04-12 10:22 大树置林 阅读(424) 评论(0) 推荐(0) 编辑