Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
这题感觉bellman 比spfa好因为这题没有确定的起点,也没有给出所有点都是连通的,用spfa的话应该要枚举所有点,bellman的话直接把所有点dist设为相同的值,对所有的边进行n次relax即可 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator