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 ccnuzhang at 2008-04-05 20:17:47 on Problem 1035
In Reply To:Re:怎么解决超时? Posted by:shawn at 2008-02-07 13:16:45
其实不用每次都全部查找
  把字典按单词长短排序
  没做一个数据只用在 长度相等,少一,多一的3个堆里面找
  这比全部查找快很多
   因为最长单词不超过15 所以最多是15堆

   

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