随笔分类 -  回文树

摘要:Description 考虑一个只包含小写拉丁字母的字符串 $s$。 我们定义 $s$ 的一个子串 $t$ 的“出现值”为 $t$ 在 $s$ 中的出现次数乘以 $t$ 的长度。 请你求出 $s$ 的所有回文子串中的最大出现值。 Input 输入只有一行,为一个只包含小写字母的非空字符串 $s$ O 阅读全文
posted @ 2018-02-06 20:01 aziint 阅读(105) 评论(0) 推荐(0)

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.