Codeforces Round #551 (Div. 2) D. Serval and Rooted Tree (树形dp)

NoSuchKey