cf/mirror

Remove the Substring (hard version)

CF
1203D21700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
bbaba
bb
Output
3
Sample 2of 4
Input
baaba
ab
Output
2
Sample 3of 4
Input
abcde
abcde
Output
0
Sample 4of 4
Input
asdfasdf
fasd
Output
3
1203D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)