BZOJ3637 Query on a tree VI(树链剖分+线段树)

BZOJ3637 Query on a tree VI(树链剖分+线段树)
原文地址:https://www.cnblogs.com/Gloid/p/9720385.html