palindrome

时间限制:20s    【提交】    空间限制:128MB

题目描述


输入格式


输出格式

一个数,即生成字符串的好听程度


样例输入

Insert 0 f
Insert 1 j
Insert 2 x
Insert 3 m
Insert 4 l
Insert 5 h
Insert 6 x
Insert 7 w
Insert 8 j
Insert 9 z
Insert 10 b
Insert 11 m
Insert 12 r
Insert 11 z
Insert 12 b
Modify 10 11 m
Remove 10
Insert 7 t
Insert 8 o
Insert 9 o
Insert 10 r
Reverse 8 11
Rotate 1 11 4

样例输出

7

提示

没有写明提示


题目来源

版权所有者: 卓亮