题目:https://www.luogu.com.cn/problem/U560039 线段树:https://www.luogu.com.cn/paste/qqz2lh38 树剖:https://www.luogu.com.cn/paste/flpf5zb0 NTT:https://www.luogu.com.cn/paste/fengozhd