poj 3180 The Cow Prom
摘要:
http://poj.org/problem?id=3180题意:给一个无向图,求出节点数据大于1的边通分量有多少个。思路:直接tarjan缩点统计。View Code #include<stdio.h>#include<string.h>#include<stdlib.h>#include<stack>#include<iostream>#include<utility>using namespace std;const int maxn = 10005;struct nd{ int v,next;}edge[maxn* 阅读全文
posted @ 2012-06-28 13:41 aigoruan 阅读(174) 评论(0) 推荐(0)