Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

是判环,我们求最大值,如果有环的话,某个值可以无限大,最后把那个值再换成原来的货币,肯定也是无限大的。

Posted by yygy at 2012-11-16 20:11:26 on Problem 1860
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator