05 2018 档案
摘要:1 #include 2 using namespace std; 3 const int maxn=1000; 4 vector g1[maxn],g2[maxn]; 5 stack s; 6 int vis[maxn],sccno[maxn],cnt; 7 void dfs1(int u){ 8 if(vis[u]) return ; 9 vis[u]...
阅读全文
摘要:2333 适用于边集储存
阅读全文
摘要:话不多说上代码 链式前向星233
阅读全文
摘要:1.cnt变量若有多次询问,一定要记得初始化!!! 2.多组数据输出入,区泛~。 3.高性能问题,考虑位运算,
阅读全文

浙公网安备 33010602011771号