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 ACM0003 at 2006-06-04 17:21:38 on Problem 1011
In Reply To:我所用的优化方法: Posted by:yangguo981 at 2006-04-08 18:04:16
> 1:排序,从大到小
> 2:搜索的时候两次遍历,第一次找是否有恰好等于剩下的长度的,有则继续搜索,没有则找第一个小于的。
> 还是超时。
> 
> 还有一些别的什么优化的方法吗?

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