Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowercase English letters only and its length will not exceed 10000.
执行用时 :28 ms, 在所有 C++ 提交中击败了97.08%的用户 内存消耗 :11.5 MB, 在所有 C++ 提交中击败了94.35%的用户