Cutting Jigsaw Puzzle
54B1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
2 4ABDCABDC
Output
32 1
Sample 2of 2
Input
2 6ABCCBAABCCBA
Output
12 6
58%
54B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
2 4ABDCABDC
32 1
2 6ABCCBAABCCBA
12 6