Quick Brown Fox and the Lazy Dog

Limits 1s, 512 MB

In every game, the quick brown fox jumps over the lazy dog. But now, the fox decided to test the dog with another game. The dog is standing in a rectangular field surrounded by fence and has to go to another point P(Px,Py) within the field. But as the dog is lazy, the fox decided to give him a bit tougher task.

This is a companion discussion topic for the original entry at https://toph.co/p/quick-brown-fox-and-the-lazy-dog