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 可以0ms过

Posted by 2016150119 at 2017-11-25 01:07:27 on Problem 1275
关键在于差分约束的建模,一个思路是枚举总出纳人数上界sum(即总出纳人数<=sum),根据sum建立差分约束,判断是否存在可行解。

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