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 |
是判环,我们求最大值,如果有环的话,某个值可以无限大,最后把那个值再换成原来的货币,肯定也是无限大的。In Reply To:为啥可以用bellman-ford算法啊? Posted by:maximdx at 2012-11-16 15:46:33 > bellman-ford算法不是求“单源最短路径”? > 但是题目要求最后还要回到原点s嘛? > 求出来最赚的一条路还要回到s有可能就亏光了,不是吗? > 求指点。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator