This question evaluates understanding of pursuit curves, continuous dynamical systems, computational geometry, and numerical simulation, measuring the ability to reason about concurrent motion, convergence behavior, and numerical precision when multiple agents chase one another.
You are given N points in 2D, indexed 0..N-1, forming a cycle.
t = 0
, point
i
is at coordinates
(xi, yi)
.
v = 1
.
t
, point
i
moves in the direction of the
current position
of point
(i+1) mod N
(i.e., it “chases” the next point).
Write a program that determines whether the points will all meet at the same location at the same time.
If they do meet, output:
T
.
(X, Y)
.
If they do not meet, output NEVER.
N
(
2 ≤ N ≤ 200
)
N
lines of real numbers:
xi yi
NEVER
, or three real numbers
T X Y
.
1e-4
absolute error.