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:我所用的优化方法: Posted by:yangguo981 at 2006-04-08 18:04:16 > 1:排序,从大到小 > 2:搜索的时候两次遍历,第一次找是否有恰好等于剩下的长度的,有则继续搜索,没有则找第一个小于的。 > 还是超时。 > > 还有一些别的什么优化的方法吗? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator