摘要:
边双连通分量+并查集这题算是水过去的吧,4500ms。应该有更好的写法#include#include#include#include#includeusing namespace std;const int maxn = 100000 + 10; //结点数量const int Maxn = 2 ... 阅读全文
posted @ 2015-09-01 11:18
Fighting_Heart
阅读(159)
评论(0)
推荐(0)
摘要:
强连通分量#include#include#include#include#includeusing namespace std;const int maxn=5000;vectorG[maxn];vectorFG[maxn];vectorEdge[maxn];int flag[maxn],dfn[... 阅读全文
posted @ 2015-09-01 11:16
Fighting_Heart
阅读(161)
评论(0)
推荐(0)

浙公网安备 33010602011771号