如何在 O(1)∼O(logn)O(1)\sim O(\log n)O(1)∼O(logn) 的时间复杂度内,求出两个点 (x,y)(x,y)(x,y) 在树上(边权为 111 )的路径中,和 xxx 距离为 111 的点?
可以预处理
不要倍增/kk。