wack-a-mole's blog

By wack-a-mole, history, 4 years ago, In English

I've been trying to solve this problem from the South America ICPC 2009: https://www.urionlinejudge.com.br/judge/es/problems/view/1412

I am completely stuck and I can't seem to find the solution. It kinda feels like it's some form of DP but I can't seem to find a recurrence that works. Do you have any ideas or hints?

Thank you so much!

  • Vote: I like it
  • +11
  • Vote: I do not like it

»
16 months ago, # |
  Vote: I like it 0 Vote: I do not like it

If you are still interested, Div1-C from round 887 can help you.

Editorial here: https://codeforces.me/blog/entry/116940