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 |
一个想法SPFA,但是多建一个点,每个人所需的费用都建成连到这个点的边的权值,在扩展的时候无论如何0的等级都满足且无论如何也不把0加入队列即可,避免了好多程序每次SPFA后还扫一遍找最小值…… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator