摘要: 1 int n,dg[K],topo[K]; 2 vectormp[K]; 3 int topo_sort(void) 4 { 5 queueq; 6 for(int i=1;i1) res=0; 12 int x=q.front();q.pop(); 13 topo[cnt++]=x; 14 for(int i=0;i... 阅读全文
posted @ 2017-06-10 14:36 weeping 阅读(114) 评论(0) 推荐(0) 编辑