Remove the Substring (hard version)
1203D21700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
bbababb
Output
3
Sample 2of 4
Input
baabaab
Output
2
Sample 3of 4
Input
abcdeabcde
Output
0
Sample 4of 4
Input
asdfasdffasd
Output
3
58%
1203D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)