cf/mirror

Alyona and a Square Jigsaw Puzzle

CF
2047A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
1
1
2
1 8
5
1 3 2 1 2
7
1 2 1 10 2 7 2
14
1 10 10 100 1 1 10 1 10 2 10 2 10 1
Output
1
2
2
2
3
2047A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)