A and B and Interesting Substrings
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 1xabcab
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 1aaa
Output
2
58%
519D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)