摘要:
Tarjan 它好贱,wa了10+次。。。 思路:用“它贱”进行强连通缩点。然后统计缩点后的图中入度为0的点的个数in和出度为0的点到个数out。A就是in, B就是max(in, out);渣代码:View Code 1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 #include <stack> 5 6 using namespace std; 7 8 const int N = 110; 9 10 struct node {11 int to;12 int n 阅读全文
posted @ 2012-02-11 14:59
AC_Von
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号