hdu6230专题

HDU6230 Palindrome —— 马拉车+树状数组

Alice like strings, especially long strings. For each string, she has a special evaluation system to judge how elegant the string is. She defines that a string S1…3n−2 is one-and-half palindromic if a