There is a square room with walls of length p. Each of the corners, except for the starting corner, contains a receptor:
Receptor
Receptor
Receptor
A laser ray originates from the southwest corner
Return the identifier of the receptor (
Note: It is guaranteed that the ray will eventually strike a receptor.
Constraints:
q p
There is a square room with walls of length p. Each of the corners, except for the starting corner, contains a receptor:
Receptor
Receptor
Receptor
A laser ray originates from the southwest corner
Return the identifier of the receptor (
Note: It is guaranteed that the ray will eventually strike a receptor.
Constraints:
q p