Lock Puzzle
936C2300· international master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
6abacbbbabcba
Output
46 3 2 3
Sample 2of 2
Input
3ababba
Output
-1
58%
936C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
6abacbbbabcba
46 3 2 3
3ababba
-1