https://www.luogu.com.cn/problem/P5787 理解: 操作离线用时间线段树维护整体统计答案,进入到某个节点加入,离开时撤销可以用可撤销数据结构维护(可能可以可持久化或LCT维护?以后再学)