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:暴力也就141MS

Posted by visual at 2013-03-05 10:04:18 on Problem 1035
In Reply To:暴力也就141MS Posted by:visual at 2013-03-05 09:57:08
  补充一句,暴力要配合剪枝:把字典里所有字符串的长度记录下来,然后按如下步骤查字典:
1.找到长度相同的字符串才去进一步匹配,如果遍历字典都查不到的话跳转到下一步
2.只去匹配字典中长度和待查字符长度完全相同或者相差为1的字符,其他字符串跳过

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