cf/mirror

Lock Puzzle

CF
936C2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6
abacbb
babcba
Output
4
6 3 2 3
Sample 2of 2
Input
3
aba
bba
Output
-1
936C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)