上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 44 下一页
摘要: 三维坐标系中,每次操作增加一个点或者询问一个区域内点的个数。 Kd-tree裸题(cdq套cdq裸题) 模仿treap在Kd-tree中插入节点,一定时间后重建整颗kd_tree //Achen #include<algorithm> #include<iostream> #include<cstr 阅读全文
posted @ 2017-12-11 07:18 啊宸 阅读(190) 评论(0) 推荐(0) 编辑
摘要: //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<vector> #include<queue> #include<ctime> # 阅读全文
posted @ 2017-12-11 07:16 啊宸 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 不旋转,基于split和merge操作的treap 又是三个模板 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<vector> 阅读全文
posted @ 2017-12-11 07:14 啊宸 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 不平衡时暴力重构子树,可以说很少写且跑得很快 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<vector> #include<q 阅读全文
posted @ 2017-12-11 07:12 啊宸 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一道模板题。 然而和一维的差不多。 //Achen #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<vector> #include<queue> 阅读全文
posted @ 2017-12-11 07:09 啊宸 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 老张让弄专题,分到了数据结构,于是愉快地打了一周数据结构。 觉得还是要水一水bzoj,然后随便打开了一道,竟然是后缀数组模板。。 这周没写博客呀。。现在去补。。 //Achen #include<algorithm> #include<iostream> #include<cstring> #inc 阅读全文
posted @ 2017-12-11 07:06 啊宸 阅读(124) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-12-04 13:08 啊宸 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Day-2 今天考了一场模拟赛 可能状态比较好,觉得今天的题挺简单的。 T1 llj大佬给我讲过的水题 T2 正解线段树上加等差数列,然而我线段树加启发式合并水过。 T3 瞎那啥yy了个dp,然后过了 下来之后觉得今天题挺简单的,意外发现其他人好像没有太这么觉得,加上sxy大佬身体不好,llj大佬沉 阅读全文
posted @ 2017-11-25 13:07 啊宸 阅读(265) 评论(0) 推荐(1) 编辑
摘要: 1.快速排序 //Twenty #include<algorithm> #include<iostream> #include<cstring> #include<cstdlib> #include<cstdio> #include<vector> #include<cmath> #include< 阅读全文
posted @ 2017-11-08 21:37 啊宸 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 开始打模板然后发现洛谷出现了一个新模板? 最长上升子序列。 阅读全文
posted @ 2017-11-07 16:06 啊宸 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 44 下一页