Problem 1620 · Medium

Coordinate With Maximum Network Quality

Scan every integer coordinate in range and sum each tower quality damped by distance, keeping the lexicographically smallest best point.

Open the interactive visualisation