You're standing at point A on the border of a rectangular area of size 300x50m.
Within the rectangular area (red), you can move with speed 5 km/h. Outside of it, your speed is 10 km/h.
What's the fastest way you can reach point B?

pull down to refresh
w = 100
m (the horizontal distance from A to B) and leth = 50
m (the vertical distance). Letx
be the number of meters to walk horizontally before going in a straight line. The total time is:x = w - h/\sqrt{3}
0.36 \times x + 0.72 \times \sqrt{2500+(100-x)^2}
forx = 100 - \frac{50}{\sqrt{3}} \approx 71.132487
is\approx 67.1769s
.