会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
探险家Mr.H
首师大附中
O
YJason
好强啊
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
28
下一页
2017年11月5日
莫比乌斯反演
摘要: http://www.bilibili.com/video/av14325327/ 懒得听我bb的可以去看视频 这位大爷讲的太好辣orz 我突然意识到我一个还挣扎在NOIP一等奖线上的弱鸡竟然突然学会了 赶紧码着别忘了。。。 一、莫比乌斯反演是什么 如果有两个定义在Z+上的函数F(x)和G(x)满足
阅读全文
posted @ 2017-11-05 22:34 探险家Mr.H
阅读(469)
评论(0)
推荐(0)
2017年11月4日
配对堆
摘要: 没什么用 打着玩听别人说merge和add都是O(1)的 #include<cstdio> #include<iostream> #include<cstdlib> #include<algorithm> #include<cmath> #include<cstring> #include<vect
阅读全文
posted @ 2017-11-04 10:37 探险家Mr.H
阅读(181)
评论(0)
推荐(0)
2017年11月3日
bzoj3224Treap
摘要: Splay版本的会补。。。 在学了2个小时Splay之后深感Treap的优越 特地又花了20分钟打了个Treap 至于这些平衡树的优缺点 可以用平衡方式来直观的感受到 现在平衡树们面对着这样的一个问题:“二叉搜索树退化成O(n)”怎么办 Splay说:下面退不退化我不管 我把要查询的点转到根节点上
阅读全文
posted @ 2017-11-03 23:24 探险家Mr.H
阅读(334)
评论(0)
推荐(0)
线段树Final版本
摘要: 结构体是个好东西。。。 看着逼格很高 #include<iostream> #include<cstdio> #include<cstdlib> #include<cmath> #include<cstring> #include<algorithm> #define l(x) (x<<1) #de
阅读全文
posted @ 2017-11-03 22:32 探险家Mr.H
阅读(148)
评论(0)
推荐(0)
bzoj1208Splay
摘要: Splay查前驱后继 小tips:在bzoj上while(scanf)这种东西可以让程序多组数据一起跑 反正没加我就t了
阅读全文
posted @ 2017-11-03 20:29 探险家Mr.H
阅读(221)
评论(0)
推荐(0)
2017年11月2日
11.2模拟赛
摘要: 三道大水题orz T1 有向图 问有多少强连通分量 ??? #include<iostream> #include<cstdlib> #include<algorithm> #include<cstdio> #include<cstring> #define m(a) memset(a,0,size
阅读全文
posted @ 2017-11-02 14:57 探险家Mr.H
阅读(223)
评论(0)
推荐(0)
2017年11月1日
LCA
摘要: #include<iostream> #include<cstdlib> #include<cstring> #include<cstdio> #include<algorithm> #include<cmath> using namespace std; const int maxn=50010;
阅读全文
posted @ 2017-11-01 15:21 探险家Mr.H
阅读(149)
评论(0)
推荐(0)
bzoj1055玩具取名
摘要: 考虑区间dp dp[i][j][k]表示区间[i,j]可不可以缩成字符k dp[i][j][k]=-1表示没算过 0表示不可以 1表示可以 dp[i][j][k]=1当且仅当 dp[l][j][a]=1 且 dp[j+1][r][b]=1且ab可以转化成k #include<iostream> #i
阅读全文
posted @ 2017-11-01 14:02 探险家Mr.H
阅读(140)
评论(0)
推荐(0)
2017年10月31日
KMP
摘要: #include<cstdio> #include<string> #include<iostream> using namespace std; int p[101]; int main() { string a,b; cin>>a>>b; int n=a.length(),m=b.length(
阅读全文
posted @ 2017-10-31 18:47 探险家Mr.H
阅读(128)
评论(0)
推荐(0)
树状数组求逆序对
摘要: #include<iostream> #include<cstdio> #include<cstdlib> #include<algorithm> #include<cstring> #include<cmath> #include<vector> #include<queue> #include<
阅读全文
posted @ 2017-10-31 16:37 探险家Mr.H
阅读(163)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
28
下一页
公告