SDNU1089拓扑排序(有向图的存储)

#include<bits/stdc++.h> using namespace std; const int maxn=1e3+10; int dp[maxn][maxn]; bool vis[maxn]; queue<int>que; int n,m,a,b; bool judge(int x) { for(int i=1; i<=n; ++i) if(dp[i][x]=
相关文章
相关标签/搜索