Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

luyuncheng's blog

By luyuncheng, 11 years ago, In English

For this question:codeforces 201B Lucky Common Subsequence。 it ask us just one virus so we can use kmp + dp to solve this question。

but i have a question that if ask us more than one virus what should i do?? i have an ideal just use Aho-Corasick automaton to get fail array but i do not know how to set dp array?

Can anyone help me ?

Thanks in advance!!

Full text and comments »

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