class Solution { public: bool repeatedSubstringPattern(string s) { string ss = s + s; string ss_(ss.begin() + 1, ss.end() - 1); return (ss_.find(s)<=ss.size()); } };