摘要: You are given a connected weighted graph with n vertices and m edges. The graph doesn't contain loops nor multiple edges. Consider some edge with id i 阅读全文
posted @ 2017-11-05 10:20 阿波罗2003 阅读(491) 评论(0) 推荐(0) 编辑
摘要: Treeland is a country in which there are n towns connected by n - 1 two-way road such that it's possible to get from any town to any other town. In Tr 阅读全文
posted @ 2017-11-05 09:57 阿波罗2003 阅读(238) 评论(0) 推荐(0) 编辑