Constrained Tree
513D22600· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 21 2 LEFT1 3 RIGHT
Output
2 1 3
Sample 2of 2
Input
3 21 2 RIGHT1 3 LEFT
Output
IMPOSSIBLE
58%
513D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 21 2 LEFT1 3 RIGHT
2 1 3
3 21 2 RIGHT1 3 LEFT
IMPOSSIBLE