[UVA] 455 - Periodic Strings
Periodic Strings
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example,
the string "abcabcabcabc" has period 3, since it is formed by 4 repetitions of the string "abc"...