Polycarpus is Looking for Good Substrings
212B2300· international master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
aaaaa2aa
Output
11
Sample 2of 2
Input
abacaba3acbaa
Output
124
58%
212B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)