How to count the period in string

Revision en1, by amankbps, 2022-11-29 19:46:32

I want to solve this problem https://codeforces.net/contest/1029/problem/A but unable to implement that finding the period of substring in string if someone share approach it will great help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English amankbps 2022-11-29 19:46:32 223 Initial revision (published)