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 yuanyirui at 2008-02-23 09:04:34 on Problem 3216
题目给出的时间是工人刚好可以开工的时间,也就是说早到的也要等。如果是这样的话,那么:
先用floyed算block间最短路
再根据 一项工作完成之后(开始+持续)经过block际旅行时间能否在另一城市要开始的时间内赶到,如果可以的话,匹配之,因为匹配了一个就可以少一个工人(最多当然是工作数),return 工作数 - 最大匹配

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