Introduction - If you have any usage issues, please Google them yourself
Segment tree structure of the code, is a relatively high-level data structure, the additions and deletions to the range only need O (logn)
Packet : 67506231segment_tree.rar filelist
segment_tree.txt