摘要: 线段树入门(Segment Tree) 基本线段树 与树状数组功能类似,实现了点的修改与区间的查询: 首先实现基本的线段树的构建: #include <iostream> #include <vector> using namespace std; class segmentTree{ public 阅读全文
posted @ 2024-06-02 15:10 石中火本火 阅读(9) 评论(0) 推荐(0) 编辑