A task for substrings
1801G3400· legendary gm4s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 5abacabaabaaac1 71 32 72 54 5
Output
7 3 5 3 1
Sample 2of 2
Input
4 4abcdcaabcabcdopenolympiad1 52 22 61 6
Output
2 0 2 3
58%
1801G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)