2017-ccpc Hangzhou-site game

 Fill in the title - ing ....

A.Super-palindrome

Original title links: HDU - 6264

Idea: As given problem in all odd substrings palindromic sequence, so that the character corresponding to the odd-numbered 1,3,5,7 ... should be the same position, the same way even positions should also be the same character. So we just need to find the maximum number of odd positions and the even number appear, with the total number can be subtracted.

 

Guess you like

Origin www.cnblogs.com/Tianwell/p/11469127.html