ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1078. Segments

Show all messages Hide all messages

i used a df after i made an oriented graf(it's much easier to do than other solutions)
if u did it better than O(N*N)
please email me at dmarius1@yahoo.com
Thanks

Edited by author 15.04.2004 19:05
AC time 0.015, but O(N*N). A new start... 16 Apr 2004 16:25
AC time 0.218, but N^3 and 884 kb memory Fedor Fominykh 31 Jul 2005 23:00
My decision not worse at all...
At last! AC 0.001 and 394 KB
ac 0.001s O(n) format_jam 20 Jan 2007 21:21
I use dp O(n).ac in 0.0001s
  first,sort;
  second dp: answer=max{f(1)..f(n)};
  f(i) means the best sum from the i one
Re: ac 0.001s O(n) elmariachi1414 (TNU) 15 Mar 2007 17:15
If you use sorting, it must be at least O(n*logn)
I used sorting and then found the LIS in O(nlogn) time,  0.031 seconds