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:一次ac呵呵,将字典里单词按长度排序,长度相同的按字典序排,遇到一个单词,获取其len,先在长度为len的字典部分二分搜索,若搜到则输出correct;否则线性扫描长度为len-1,len,len+1的单词,将结果按照要求输出。

Posted by 1126358229 at 2012-02-06 15:27:59 on Problem 1035
In Reply To:Re:一次ac呵呵,将字典里单词按长度排序,长度相同的按字典序排,遇到一个单词,获取其len,先在长度为len的字典部分二分搜索,若搜到则输出correct;否则线性扫描长度为len-1,len,len+1的单词,将结果按照要求输出。 Posted by:troy24 at 2010-08-10 09:48:39
> 不对吧,要按字典顺序输出

他应该是输出前再次将满足要求的单词按照原字典里的输入顺序排序,然后输出。我也是这样,255MS

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