cf/mirror

Balanced Substring

CF
1569A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
1
a
6
abbaba
6
abbaba
9
babbabbaa
Output
-1 -1
1 6
3 6
2 5
1569A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)