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就可以了虚拟一个节点,每个物品都与虚拟出的节点连一条权为物品价值的边, 然后相关联的物品连一条权为优惠价格的边,求节点1与虚拟节点的最短路就okLe Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator