#arc145a. [arc145_a]AB Palindrome

[arc145_a]AB Palindrome

给定长为 nn ,由 AABB 组成的字符串,每次可以选择相邻两位替换成 ABAB。 询问原字符串是否能通过若干次操作变成回文字符串。