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 Sempr at 2007-05-12 09:50:52 on Problem 3228
In Reply To:这题还有别的做法吗?我用的maxflow(relabel)+2分+floyd,非常慢的样子, Posted by:Iambitious at 2007-05-12 09:48:29
从最短边开始合并
直到使任意一个集合中金矿数量都不大于仓库数量为止

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