feruz.atamuradov's blog

By feruz.atamuradov, history, 7 years ago, In Russian

Hi codeforces. Please help me! How to solve problem acmp.ru in O(NM) time.
Sorry me English isn't well.
Thanks in advance!

| Write comment?
»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Well, it is the well-known problem and it could be solved using a DP approach. Follow this link to find the analysis of that possible solution.