#includeusing namespace std;#define MAXN 105#define inf 1e9+9char s[MAXN];int len,dp[MAXN][MAXN];bool judge(int l,int r,int L,int R){ if((R-L+1)%(r-l+1)) return 0; int le=r-l+1; for(int i=L+le;i<=R;i++) if(s[i]!=s[l+(i-l)%le])return 0; return 1;}int minn(int x,int y){return x