http://acm.hdu.edu.cn/showproblem.php?pid=2544以上是題目鏈接這是VJ的提交這裏推薦一個最短路詳解博客:http://blog.csdn.net/u012469987/article/deta