Problem 3516 · Easy

Find Closest Person

Two people walk at equal speed toward a third at z; report which of them arrives first, or 0 when both arrive together.

Open the interactive visualisation