Gamma Ray and his collection of art X33261


Statement
 

pdf   zip

html

Input The input of the program will be a sequence like this:
And the numbers mean:

  • 1st position X to begin
  • 2nd position Y to begin
  • 3rd maxXCapacity of circuit
  • 4th maxYCapacity of circuit

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

Public test cases
  • Input

    '>4/3\6/3\1' 2 4 8 5
    

    Output

    /------\
    |      |
    |      |
    |      |
    \->----/
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++