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 madongfly at 2007-07-31 19:38:17 on Problem 3303
In Reply To:Re:这题DFS寻找增广路径可以么 Posted by:xming at 2007-07-31 18:07:47
将n个请求分成2n个事件,一种请求厅房,一种释放厅房,按发生时间排序,时间相同的请求事件在前。
dp[i][j]表示第i个事件发生使得使用厅房的状态为j 可不可能。
j的二进制形式表示各厅房的使用状态。

剩下的状态转移就比较好想了吧。


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