
模板
conquerheaven
这个作者很懒,什么都没留下…
展开
-
tarjan模板
/////////////////////////////tarjan struct edge{ int u , v , next; edge(int a = 0 , int b = 0 , int c = 0){ u = a , v = b , next = c; } }tarjan_e[maxe]; int ta原创 2014-08-13 15:29:59 · 440 阅读 · 0 评论 -
dinic 模板
#include #include #include #include #include #include using namespace std;#define INF 1000000000const int maxn = 3010;////////////////////////int d[maxn];bool vis[maxn];struct edge{ i原创 2014-08-06 09:54:36 · 482 阅读 · 0 评论 -
最小费用最大流模板
#include #include #include #include using namespace std;#define ll long longconst int maxn = 210;const ll inf = 1000000000000000;struct edge{ int u , v , f , c , next; edge(int U = 0原创 2014-04-19 16:04:07 · 478 阅读 · 0 评论 -
计算几何模板
1、已知3点,求面积:原创 2014-04-25 20:12:48 · 469 阅读 · 0 评论 -
网络流
1、dinic(递归)2、dinic(非递归)原创 2014-10-12 15:01:20 · 549 阅读 · 0 评论 -
结构体优先队列排序
#include #include #include #include using namespace std;struct Node{ int x , y; Node(int a = 0 , int b = 0){ x = a , y = b; }};bool operator<(Node a , Node b){ if(a.x原创 2014-10-12 14:54:28 · 4881 阅读 · 0 评论 -
tri树模板
字典树模板原创 2016-10-17 22:31:21 · 593 阅读 · 0 评论