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:I get TLE~ isnIn Reply To:I get TLE~ isn't it o(n^2), i can't optimize it any more :( Posted by:xhope at 2003-11-01 17:03:47 There is an O(n) algorithm. Using heap,you can get an O(nlogn) algorithm. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator