This problem is in Contest(s) below:
Contest 8813:2025.11.1-hsy-树的重心&直径