Input
The input of the program will be a sequence like this:
And the numbers mean:
Output
The output of the program must represent in two dimensions the tour of the light between all mirrors system. And the only way of laser to reach the detector is in the same direction it has begun. For the entry proposed the output has to be:
NO IMAGE YET
For the output represent the straight segments with symbols:
if horizontal and
if vertical
Input
'>4/3\6/3\1' 2 4 8 5
Output
/------\ | | | | | | \->----/