版本比较
手搓模板计划
正文
增加 3 行删除 3 行
348 行未改动全部展开34935035135235335335435535635745 行未改动403404405406407407408409410411119 行未改动全部展开531532533534535535536537538539140 行未改动全部展开348 行未改动全部展开 } while(tp != v);// stk.pop();//这里多的一个pop忘记删掉了 ans.push_back(tmp); } }}
void tarjan(int u,int rt){//点双连通分量 dfn[u] = low[u] = ++cnt;45 行未改动 stk.pop(); } stk.pop(); ans.push_back(tmp); } }}
void tarjan(int u,int edge){//边双连通分量 dfn[u] = low[u] = ++cnt;119 行未改动全部展开 for(register int i = 1;i <= n;++i){ for(register int j = 1;j <= n;++j){ for(register int k = 1;k <= n;++k){ res.G[i][j] += x.G[i][k] * y.G[k][j]; if(res.G[i][j] >= mod)res.G[i][j] %= mod; if(res.G[i][j] >= mod)res.G[i][j] %= mod; } } } return res;140 行未改动全部展开