public class Solution { public bool RepeatedSubstringPattern(string s) { var len = s.Length; ) { return false; } ) { ] == s[]) { return true; } else { return false; } } else { )); ; i <= bound; i++) { ) { var teams = len / i;//共teams组,每组i个字符 , i);//第…