Easiest HLD with subtree queries - Codeforces

codeforces.com codeforces.com