![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
拓扑排序
Keep_Trying_Go
无
展开
-
poj2367拓扑排序模版题
方法一: 采用二位数组的形式(也可以用邻接表形式) #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<queue> using namespace std; const int maxx=1e3+10; const int inf=0x3f3f3f3f; int n; int indegree[maxx]; int vis[maxx]原创 2021-02-17 19:46:46 · 220 阅读 · 0 评论 -
HDU4857拓扑排序模版题
方法一: #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<map> #include<queue> #include<set> #include<vector> using namespace std; typedef long long ll; const int maxx=30005; int原创 2021-02-17 19:35:14 · 118 阅读 · 0 评论 -
HDU5154拓扑排序模版题
方法一: 采用邻接表的形式: #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #include<map> #include<queue> using namespace std; const int maxx=1e3+10; int vis[maxx][maxx]; int indegree[m原创 2021-02-17 19:31:48 · 125 阅读 · 0 评论 -
HDU1285拓扑排序模版题
方法一: #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #include<map> #include<queue> using namespace std; const int maxx=1e3+10; int vis[maxx][maxx]; int indegree[maxx]; int原创 2021-02-17 19:25:51 · 118 阅读 · 0 评论 -
HDU3342拓扑排序
方法一: #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<map> #include<queue> #include<set> #include<vector> using namespace std; typedef long long ll; const int maxx=105; int .原创 2021-02-17 18:20:30 · 129 阅读 · 0 评论