【HDU - 2586】How far away ?(LCA最近公共祖先)
There are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this "How far is it if I want to go from house A to house B"? Usually it hard to...
原创
2018-12-20 20:20:14 ·
205 阅读 ·
0 评论