Periodic Substring

Revision en1, by Loserinlife, 2024-04-01 17:00:14

Given the string s. Find a maximum integer k such that there is a non-empty substring in the string s that is a concatenation of

k equal strings. This problem is from: https://codeforces.net/edu/course/2/lesson/2/5/practice/contest/269656/problem/F

|s| <= 4e5

Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Loserinlife 2024-04-01 17:00:14 295 Initial revision (published)