Codeforces 1249 F Maximum Weight Subset —— 树形dp

NoSuchKey