2019年9月14日

拓扑排序的小总结

摘要: #include<iostream> #include<cstdio> #include<cstring> using namespace std; const int maxn = 100 + 15; int n,m,t;//图中有n个节点 int topo[maxn];//储存拓扑排序的顺序 i 阅读全文

posted @ 2019-09-14 16:37 chengyulala 阅读(154) 评论(0) 推荐(0)

POJ1018

摘要: //POJ 1018(DP) 当有俩个变量时可固定一个边量再去求另一个变量(important) #include<iostream> #include<cstdio> #include<algorithm> #include<cstring> #define inf (0x3f3f3f3f) using namespace std; int dp[115][1200];//前i个的设备的j带宽的 阅读全文

posted @ 2019-09-14 13:25 chengyulala 阅读(124) 评论(0) 推荐(0)

导航