[JLOI2014]松鼠的新家

题解:

树剖就是裸题吧

当然也可以用差分来实现

原文地址:https://www.cnblogs.com/yinwuxiao/p/8506937.html