cf/mirror

A and B and Interesting Substrings

CF
519D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 8 1 1 1 1 1 1
xabcab
Output
2
Sample 2of 2
Input
1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 8 1 1 1 1 1 1
aaa
Output
2
519D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)