cf/mirror

Count Good Substrings

CF
451D2000· candidate master2s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 4
Input
bb
Output
1 2
Sample 2of 4
Input
baab
Output
2 4
Sample 3of 4
Input
babb
Output
2 5
Sample 4of 4
Input
babaa
Output
2 7
451D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)