On a shooting range, shooters use a wall to practice, trying to hit it from various positions. Shooters do not have problems with vertical deviation, so we can use a simplified model for this mission. We placed a camera above the shooting range and use Cartesian coordinates to describe states. We know coordinates of wall (target) ends and shooting point. And we know the point where a bullet is after a small time. You should determine the result of the shot.
You are given coordinates for the end-points of the target wall on a grid. In addition, you have two points describing the shot: A starting point where the bullet was fired, and a second... .