How to solve this problem based on strings?

Revision en1, by 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

Tags #strings

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English wh1te_whale 2018-02-05 01:21:36 316 Initial revision (published)