#abc070d. [abc070_d]Transit Tree Path

[abc070_d]Transit Tree Path

给出一棵有N个结点的树,给出Q个询问,求结点xj过结点K到节点yj的最短距离