How to count the period in string

Правка en1, от amankbps, 2022-11-29 19:46:32

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский amankbps 2022-11-29 19:46:32 223 Initial revision (published)