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 cpsa3 at 2011-07-23 22:41:34 on Problem 1847
建图:
(1):每个点向他可以到的第一个点连<INF,0>,和他可以到达的其余点连<INF,1>
(2):scr向A连<1,0>
(3):B向sink连<1,0>
(4):然后从scr向sink找增广路
(5):找到则输出dis[sink];否则输出-1

16ms AC、、、、

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