摘要: for(int i=1;i<=scc;i++) if(!ru[i]) q.push(i); while(!q.empty()){ int x=q.front();q.pop(); for(int i=hd[x];i;i=ed[i].next){ hav[ed[i].to] += hav[x]; -- 阅读全文
posted @ 2017-11-05 09:35 pandaB 阅读(240) 评论(0) 推荐(0) 编辑