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 xiaxia at 2006-06-26 01:52:05 on Problem 2843
In Reply To:先考虑一下一维的情况,然后扩展到二维 Posted by:frkstyc at 2006-06-25 23:53:09
一维的用集合表示没有被删除的cell
例如 {1 2 3 4 5 6}
删除3,4 后就是{1 2 5 6}
然后如果查找1,5之间的未删除的就是1 2 5。
这样相当于先找到最前面的1往后找直到大于5或者到头了。
是这个意思吗? 二维的就是外面多一层循环。
我用set做的结果还是超时



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