Prefixes and Suffixes
432D2000· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
ABACABA
Output
31 43 27 1
Sample 2of 2
Input
AAA
Output
31 32 23 1
58%
432D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
ABACABA
31 43 27 1
AAA
31 32 23 1