Periodic Strings
Jump to navigation
Jump to search
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.