Rubik's Cube Coloring (hard version)
1594E22300· international master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
325 orange2 white
Output
1024
Sample 2of 3
Input
221 white2 white
Output
0
Sample 3of 3
Input
1031 blue4 red5 orange
Output
328925088
58%
1594E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…