Colored Cubes
1025E2700· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
2 11 12 2
Output
21 1 1 21 2 2 2
Sample 2of 4
Input
2 21 12 21 22 1
Output
22 2 2 11 1 1 2
Sample 3of 4
Input
2 22 12 22 22 1
Output
42 1 1 12 2 2 11 1 1 21 2 2 2
Sample 4of 4
Input
4 32 22 33 33 22 22 3
Output
92 2 1 21 2 1 12 3 2 23 3 2 32 2 1 21 1 2 12 1 3 13 1 3 21 2 2 2
58%
1025E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)