Problems > Points Within Reach > Editorial

Points Within Reach — Solution & Editorial

Back to the Problem

For each query, compare each point's SQUARED distance to the center against r² — all integer arithmetic, no sqrt.

Complexity: O(NQ)