Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:一次ac呵呵,将字典里单词按长度排序,长度相同的按字典序排,遇到一个单词,获取其len,先在长度为len的字典部分二分搜索,若搜到则输出correct;否则线性扫描长度为len-1,len,len+1的单词,将结果按照要求输出。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator