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

我是用堆栈存起来的,所以慢,还是你的方法好,记下位置就好了

Posted by duck904 at 2005-08-12 22:49:12 on Problem 2559
In Reply To:您的O(n)怎么那么慢?我保存了每个数前面、后面第一个比他小的,用dp,两层循环(里面那个肯定很快)。100ms左右. Posted by:tengshengbo at 2005-08-12 22:47:23


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