Educational Codeforces Round 16 — F. String Set Queries — Time Limit Exceeded

Revision en1, by thecortex, 2016-09-08 16:34:46

Hello,

I'm getting time limit exceeded on this problem; 710F - Операции над множеством строк

Any idea how to tweak my solution to avoid this quadratic runtime in method "count". I reviwed others solutions, and they are all quadratic, but why my implementation is just slower?

My solution; 20459110

Thanks in advance!

Tags tries, dictionaries, fsm

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English thecortex 2016-09-08 16:36:11 138
en1 English thecortex 2016-09-08 16:34:46 396 Initial revision (published)