cf/mirror

Grid Reconstruction

CF
1816B1000· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
2
4
6
Output
3 2
1 4
8 2 6 4
1 5 3 7
11 5 9 1 7 3
6 10 2 8 4 12
1816B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)