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

普通spfa就可以了

Posted by dsqwwe at 2011-02-26 15:24:23 on Problem 1062
虚拟一个节点,每个物品都与虚拟出的节点连一条权为物品价值的边,
然后相关联的物品连一条权为优惠价格的边,求节点1与虚拟节点的最短路就okLe 

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