摘要: Any its substring with length equal tokis a palindrome.对于一个长度为n的串,任何它的长度为k的字串都是回文串。该串具有这样的性质:如果k为偶数,母串所有字符都相等;aaaaaa如果k为奇数,母串最多由两种字母组成;abababaView Code #include <iostream>#include <math.h>#define MOD 1000000007using namespace std;long long ppow(long long x,long long y){ long long res=1; 阅读全文