Codeforces Beta Round #94 Problem B

Правка en2, от 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!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский L.O 2017-10-10 10:11:15 10
en1 Английский L.O 2017-10-10 08:25:40 392 Initial revision (published)