Xenia and String Problem
356E3000· legendary gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
zzz
Output
12
Sample 2of 4
Input
aba
Output
12
Sample 3of 4
Input
abacaba
Output
83
Sample 4of 4
Input
aaaaaa
Output
15
58%
356E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)