# 暴力枚举 ```python class Solution: def solve(self , a: str) -> int: res = 0 # 枚举起始点 for i in range(len(a)-1): # 枚举长度 &...