热门标签
更多>
搜索结果
查询Tags标签: indgr,共有 2条记录-
poj 1094(拓扑排序,三种情况:1正好排好,2正好有环,3到最后也没排好,也没有环,多重解)
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int n,flag,edge[30][30],indegree[30],indgr_tmp[30],ans[30]; void topo(){int i,j,s,pos;for(i=0;i<n;i++){indgr_tmp[i] = indegree[i];}pos = 0;for(i=0;i<n;i…
2021/8/12 23:10:46 人评论 次浏览 -
poj 1094(拓扑排序,三种情况:1正好排好,2正好有环,3到最后也没排好,也没有环,多重解)
#include<iostream> #include<cstdio> #include<cstring> using namespace std; int n,flag,edge[30][30],indegree[30],indgr_tmp[30],ans[30]; void topo(){int i,j,s,pos;for(i=0;i<n;i++){indgr_tmp[i] = indegree[i];}pos = 0;for(i=0;i<n;i…
2021/8/12 23:10:46 人评论 次浏览