摘要:
描述 小Hi希望压缩一个只包含大写字母'A' 'Z'的字符串。他使用的方法是:如果某个子串 S 连续出现了 X 次,就用'X(S)'来表示。例如AAAAAAAAAABABABCCD可以用10(A)2(BA)B2(C)D表示。 此外,这种压缩方法是可以嵌套的,例如HIHOHIHOCODERHIHOHI 阅读全文
摘要:
Description During a discussion of problems at the Petrozavodsk Training Camp, Vova and Sasha argued about who of them could in 300 minutes find a pai 阅读全文
摘要:
Description You have a string and queries of two types: replace i’th character of the string by character a; check if substring sj...sk is a palindrom 阅读全文