上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: [this is](TSP问题+例题 - 快乐的黄鳝 - 博客园 (cnblogs.com)) 阅读全文
posted @ 2022-04-18 10:02 兮何其 阅读(15) 评论(0) 推荐(0)
摘要: csdn csdn 阅读全文
posted @ 2022-04-17 21:03 兮何其 阅读(17) 评论(0) 推荐(0)
摘要: zhihu 阅读全文
posted @ 2022-04-17 18:26 兮何其 阅读(19) 评论(0) 推荐(0)
摘要: csdn 阅读全文
posted @ 2022-04-17 10:21 兮何其 阅读(19) 评论(0) 推荐(0)
摘要: 左值:在表达式中能作为左边元素的值 int a; int& b=a int& c=10; //错误,不能对右值添加引用,因此称呼'&'为左值引用,只能引用左值 const int & c=10; //可以,const左值引用可以对右值进行引用 //为解决这个问题,引入右值引用'&&' int && 阅读全文
posted @ 2022-04-17 10:15 兮何其 阅读(29) 评论(0) 推荐(0)
摘要: csdn 参数取用方式 ...mutable可以取消默认const... throw() → bool(返回值类型) {函数体}(参数值列表) 阅读全文
posted @ 2022-04-16 21:35 兮何其 阅读(10) 评论(0) 推荐(0)
摘要: 在完备匹配的基础上实现边权最大(KM算法) 如果不是完备匹配可以用费用流 blog 洛谷 AC #include <algorithm> #include <cstring> #include <cstdio> #include <iostream> using namespace std; con 阅读全文
posted @ 2022-04-16 12:01 兮何其 阅读(91) 评论(0) 推荐(0)
摘要: 洛谷 #include<bits/stdc++.h> using namespace std; const int N = 50005, M = 50000 * 2 + 5; int h[N], e[M], ne[M], flow[M], cost[M], idx; int n, m, S, T; 阅读全文
posted @ 2022-04-15 22:09 兮何其 阅读(27) 评论(0) 推荐(0)
摘要: dinic算法 blog #include <iostream> #include <cstdio> #include <queue> #include <cstring> using namespace std; /* 维护一个残余网络,c[i]表示正向残余流, c[i^1]表示反向残余流*/ c 阅读全文
posted @ 2022-04-15 17:42 兮何其 阅读(30) 评论(0) 推荐(0)
摘要: 匈牙利算法 AC #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 510, M = 100010; int h[N], e[M], ne[M], idx; i 阅读全文
posted @ 2022-04-15 17:07 兮何其 阅读(27) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页