AT5158 [AGC037A] Dividing a String 题解

description 给定一个字符串 S S S,请你找出一个最大的 k k k,使得将这个字符串划分红 k k k 段后可以保证相邻的两段不相同。html 1 ≤ ∣ S ∣ ≤ 2 × 1 0 5 1\le |S| \le 2\times 10^5 1≤∣S∣≤2×105,且保证 S S S 串内均为小写字母。ios translate by @ShineEternal。web soluti
相关文章
相关标签/搜索