#codefestival2017qualcd. [code_festival_2017_qualc_d]Yet Another Palindrome Partitioning

[code_festival_2017_qualc_d]Yet Another Palindrome Partitioning

题目描述

给定一个字符串s\texttt{s},把s\texttt{s}分成NN个子串,要求每个子串中的字母经过一定的移动,会变成一个回文串(如aab经过一定的移动,变成了abaaba是一个回文串),NN最少

输入格式

一个字符串s\texttt{s}1|s|2×1051 \le \texttt{|s|} \le 2 \times 10^5

输出格式

一个正整数NN,表示最少的子串个数。