Periodic Strings
Read the problem for a description. It's pretty hard to describe more simply!
The string is only 100 characters long. literally just loop from 1 to length(string) and check if the rules apply. It would hard to make this TLE.
Read the problem for a description. It's pretty hard to describe more simply!
The string is only 100 characters long. literally just loop from 1 to length(string) and check if the rules apply. It would hard to make this TLE.