Stuck in problem "Code Lock" from South America ICPC 2009. Any hints?

Revision en1, by wack-a-mole, 2020-12-25 00:42:50

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!

Tags #need_hints, hints, just give me some hints

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English wack-a-mole 2020-12-25 00:42:50 412 Initial revision (published)