codeforces 1283F. DIY Garland(树+优先队列)

NoSuchKey