How to solve this problem based on strings?

Правка en1, от wh1te_whale, 2018-02-05 01:21:36

I found this problem on URI online judge. I am getting 30% WA when I set T=1 and TLE on all other cases. I am using Tries to solve it. Is there a different approach to solve this problem?

Problem Statement

Теги #strings

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский wh1te_whale 2018-02-05 01:21:36 316 Initial revision (published)