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 anyl94xh at 2011-10-31 00:33:36 on Problem 1062
SPFA,但是多建一个点,每个人所需的费用都建成连到这个点的边的权值,在扩展的时候无论如何0的等级都满足且无论如何也不把0加入队列即可,避免了好多程序每次SPFA后还扫一遍找最小值……

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