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

Re:这题数据好水。。。

Posted by lyy83854 at 2011-12-16 15:22:20 on Problem 3714
In Reply To:这题数据好水。。。 Posted by:abilitytao at 2010-05-20 18:38:19
> 算法书上说最多在y数组中取7个点进行比较就可以了,我本来想验证下注释上说的4个点,把cnt<=7改成cnt<=4,AC了。高兴了一会,改成3,继续AC,2,还是AC.最后改成0,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