Help? Anyone? (Hints for a problem)

Revision en1, by O.S.Mozes, 2019-02-27 21:08:03

Hello Codeforces,

I read this interesting problem a while ago and don't know how to solve it efficiently. Any hints?

Link to the problem

I tried mapping strings to states but that obviously sucks. Any help would be appreciated.

Thank you!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English O.S.Mozes 2019-02-27 21:08:03 325 Initial revision (published)