hannibal_Iecter
hannibal_Iecter
全部文章
分类
ac自动机(7)
bitset(2)
BSGS(1)
dfs(3)
DP(19)
ODT(1)
splay(1)
ST表(2)
tarjan(2)
中途相遇法(1)
主席树(4)
二分图(1)
二叉树(1)
分块(1)
分治(3)
回文树(1)
多校(1)
字符串(1)
容斥(2)
平衡树(5)
并查集(1)
快速乘(1)
数学(9)
整体二分(1)
树链剖分(2)
模拟退火(2)
水题(1)
爬山算法(1)
矩阵快速幂(2)
线性基(1)
线段树(10)
编译器(2)
背包(2)
莫队(1)
计算几何(1)
随机数(1)
高精度(1)
归档
标签
去牛客网
登录
/
注册
hannibal_Iecter的博客
全部文章
(共98篇)
poj2411【状压dp】
#pragma GCC optimize(2) #include<cstdio> #include<cstring> using namespace std; typedef long long ll; const int maxn = 1e5+5; int n, m, yy...
2019-02-27
0
404
poj2378树形dp
#pragma GCC optimize(2) #include<vector> #include<cstdio> #include<algorithm> using namespace std; typedef long long ll; const int m...
2019-02-27
0
377
树形dp模板poj1463
#pragma GCC optimize(2) #include<vector> #include<cstdio> using namespace std; typedef long long ll; const int maxn = 1500+5; int Case = 1...
2019-02-27
0
338
【模板】ac自动机
#pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1e6+5; int n, cnt[200]; char temp[20...
2019-02-03
0
343
环形区间连续和问题[长度不超过n的连续最大和]
#pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 2e5+5; int Case = 1; ll cc[maxn], pr...
2019-02-02
0
408
[SCOI2010]序列操作 线段树
一眼线段树代码题,交上去一直WA,找半天bug原来是区间合并写错了!! #pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; const int maxn = 1e5+5; struct node{ ...
2019-01-26
0
447
【HDU3555】数位DP模板题
#pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; typedef long long ll; int Case = 1; ll dp[20][2], num[20]; ll dfs(int len, ...
2019-01-26
0
341
【模板】splay
放一个一知半解的抄的板子 #pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; const int maxn = 5e5+5; int Case = 1; struct node{ int ch[2]...
2019-01-20
0
389
扫描线模板
#include<bits/stdc++.h> using namespace std; const int maxn = 2005+5; struct node{ double l, r, h; int type; node(){}; node(doub...
2019-01-20
0
430
背包模板
void zeroone(int w, int v) { for(int i = m; i >= w; i--) dp[i] = max(dp[i], dp[i-w]+v); } void comdp(int w, int v) { for(int i = w;...
2019-01-18
0
380
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页