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:怎么解决超时?In Reply To:Re:怎么解决超时? Posted by:shawn at 2008-02-07 13:16:45 其实不用每次都全部查找 把字典按单词长短排序 没做一个数据只用在 长度相等,少一,多一的3个堆里面找 这比全部查找快很多 因为最长单词不超过15 所以最多是15堆 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator