- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 自带的inplace_merge的归并排序模版
//归并排序模板。记得和快排一块对着看。#include#include#include#include#include#include#include#include#define LL long long#define inf 0x3f3f3f3f#define mod 1e9+7const int maxn=1e5+5;using namespace std;in
2017-12-07 22:43:50 495
原创 百练+重要逆序对归并排序,记得要有标记来减少循环扫描
点击打开链接#include#include#include#include#include#include#include#include#define inf 0x3f3f3f3f#define LL long longusing namespace std;int N=0;const int maxn=2e5+5;LL Arr[maxn]={0},temp[maxn
2017-12-07 22:17:39 353
原创 百练+网络流Dinic模版,EK空间使用不够了
点击打开链接#include #include #include #include #include #include #include #define inf 0x3f3f3f3f#pragma comment(linker, "/STACK:102400000,102400000")using namespace std;const int maxn= 20005;con
2017-12-07 10:33:15 152
原创 百练+EK算法模版+网络流邻接表形式
点击打开链接//在于建图#include #include #include #include #include #include #include #include #include #include #include #define LL long long#define inf 0x3f3f3f3f#define mod 1e9+7using namespace
2017-12-07 10:28:00 319
原创 最大流+EK算法在于建图
点击打开链接//建立一个超级源点和一个超级汇点,将cows与超级源点相连,容量为1//stalls与汇点连接,容量为1,然后cows与stalls连接,容量为1//求出最大流即可。// main.cpp// test// Created by 吴有堃 on 2017/9/11// Copyright © 2017年 吴有堃. All rights reserved#inclu
2017-12-07 10:23:26 161
原创 百练+最大流+EK算法模版
点击打开链接//把n m弄反了,是n条边, m个顶点。// main.cpp// test// Created by 吴有堃 on 2017/9/11// Copyright © 2017年 吴有堃. All rights reserved#include #include #include #include #include #include #include #
2017-12-07 10:21:33 152
原创 区间DP+石子合并的变相题目
点击打开链接// main.cpp// test// Created by 吴有堃 on 2017/9/11.// Copyright © 2017年 吴有堃. All rights reserved.#include #include #include #include #include #include #include #include #include #
2017-12-07 10:20:10 169
原创 百练+floyd对角求负环
点击打开链接//使用floyd来求解负环// main.cpp// test// Created by 吴有堃 on 2017/9/11.// Copyright © 2017年 吴有堃. All rights reserved./*void Floyd(){ int i,j,k; for(k=1;k<=n;k++) for(i=1;i<=n;
2017-12-07 10:18:35 245
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人