会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Hotword's Space
博客园
首页
新随笔
联系
订阅
管理
2018年5月15日
[模板] 无旋Treap (C++ class)
摘要: 注意!本帖不是算法介绍!只是贴代码(逃) //嫌stdlib的rand太慢,手打了一个 1 /* 2 Author: hotwords 3 */ 4 5 typedef unsigned int tkey; 6 class Random { 7 private: 8 tkey rs1,rs2,rs3
阅读全文
posted @ 2018-05-15 23:28 热言热语
阅读(250)
评论(0)
推荐(0)
编辑
[模板] 树状数组 (C++ class)
摘要: 闲来无事(其实是打了两三道树状数组题),写了个树状数组模板…… 1 /* 2 Author: hotwords 3 */ 4 5 template<typename tp> 6 class BinTree { 7 private: 8 int n;tp *a; 9 public: 10 inline
阅读全文
posted @ 2018-05-15 23:23 热言热语
阅读(155)
评论(0)
推荐(0)
编辑
公告