`
yangliuy
  • 浏览: 65677 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

POJ2485 求最小生成树的最大边长度

 
阅读更多

此题关键要理解输出的定义

For each test case, you should output a line contains an integer, which is the length of the longest road to be built such that all the villages are connected, and this value is minimum.
输出是最小生成树中最长边的长度

对prim算法稍作变化即可AC

Source Code

Problem: 2485 User: yangliuACMer
Memory: 1232K Time: 750MS
Language: C++ Result: Accepted


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics