Codeforces 1039D You Are Given a Tree [根号分治,整体二分,贪心]

NoSuchKey