Connected Cubes
1965E3100· legendary gm4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 4 33 2 3 11 1 1 11 3 3 2
Output
131 1 2 31 3 2 32 1 2 32 2 2 32 3 2 33 3 2 31 2 2 21 2 3 21 3 3 21 4 3 22 4 3 23 4 3 23 4 2 2
Sample 2of 2
Input
2 2 22 11 2
Output
91 3 1 12 3 1 13 1 1 13 2 1 13 3 1 11 1 2 21 2 2 22 1 2 22 2 2 2
58%
1965E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)