CodeForces - 600E Lomsat gelral (树上启发式合并)
Lomsat gelralYou are given a rooted tree with root in vertex1. Each vertex is coloured in some colour.Let's call colourcdominating in the subtree of vertexvif there are no other colours th...
原创
2019-08-06 10:19:15 ·
267 阅读 ·
0 评论