题目描述
给定一个只包含小写字母的字符串 $S$,
请你求出 $S$ 的所有出现次数不为 1 的子串的出现次数乘上该子串长度的最大值。
输入格式
一行一个字符串 $S$。
输出格式
一行一个整数表示答案。
样例数据
样例输入
ababcbasdcbbadbcbad
样例输出
8
子任务
对于所有数据,$|S| \leq 2 \times 10^5$。
As we are currently experiencing an overwhelming number of web requests for fetching user submissions, we have temporarily disabled the full submissions list. You must now be logged in to view submissions.
给定一个只包含小写字母的字符串 $S$,
请你求出 $S$ 的所有出现次数不为 1 的子串的出现次数乘上该子串长度的最大值。
一行一个字符串 $S$。
一行一个整数表示答案。
ababcbasdcbbadbcbad
8
对于所有数据,$|S| \leq 2 \times 10^5$。
We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.
You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.
STOP! Before you submit an issue, please READ the following guidelines: