Ambiguous Dominoes
1695E2700· international gm8s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
11 2
Output
-1
Sample 2of 3
Input
21 11 2
Output
2 22 11 1LRLRUUDD
Sample 3of 3
Input
101 31 12 13 41 51 53 12 43 34 1
Output
4 51 2 5 1 53 4 1 3 11 2 4 4 11 3 3 3 1LRULRLRDLRULRLRDLRLRUULRUDDUUDLRDDULRLRD
58%
1695E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…