O.S.Mozes's blog

By O.S.Mozes, history, 5 years ago, In English

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!

Full text and comments »

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