摘要:
1:最小生成树 #include<bits/stdc++.h> using namespace std; const int mod=31011; struct mdzz{ int op,ed,v; }e[1010]; struct rbq{ int left,right,va; }a[1010]; 阅读全文
摘要:
动态规划思想的Flord #include<iostream> using namespace std; int d[5000][5000]; int main() { int i,j,n,m,u,v,w,k; cin>>n>>m; for (i=1;i<=n;i++) for (j=1;j<=n; 阅读全文
摘要:
拓扑排序:*保证无环 1:模板(若要字典序则采用优先队列) #include<iostream> #include<cstring> #include<queue> int s[100010],f[100010]; int vis[100010]; using namespace std; int 阅读全文