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:暴力也就141MSIn Reply To:暴力也就141MS Posted by:visual at 2013-03-05 09:57:08 补充一句,暴力要配合剪枝:把字典里所有字符串的长度记录下来,然后按如下步骤查字典: 1.找到长度相同的字符串才去进一步匹配,如果遍历字典都查不到的话跳转到下一步 2.只去匹配字典中长度和待查字符长度完全相同或者相差为1的字符,其他字符串跳过 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator