Codeforces Beta Round #94 Problem B

Revision en2, by L.O, 2017-10-10 10:11:15

Is there a better suffix array solution for this problem ?
This is my solution, but I think is very inefficient
Is there a better solution with suffix array?
there is no editorial for this round
I hope someone can help me!
Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English L.O 2017-10-10 10:11:15 10
en1 English L.O 2017-10-10 08:25:40 392 Initial revision (published)