【POJ3728】The merchant(LCA+并查集)(好题)
DescriptionThere are N cities in a country, and there is one and only one simple path between each pair of cities. A merchant has chosen some paths and wants to earn as much money as possible in each p
原创
2017-03-27 20:05:24 ·
678 阅读 ·
0 评论