• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
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 热言热语 阅读(260) 评论(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 热言热语 阅读(162) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3