CodeForces

点分治裸题......好像也可以用树形dp做......

待更

原文地址:https://www.cnblogs.com/shatianming/p/12304880.html