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 |
我是用堆栈存起来的,所以慢,还是你的方法好,记下位置就好了In Reply To:您的O(n)怎么那么慢?我保存了每个数前面、后面第一个比他小的,用dp,两层循环(里面那个肯定很快)。100ms左右. Posted by:tengshengbo at 2005-08-12 22:47:23 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator