circles[i] = [x, y, r] is a circle centred at (x, y) with radius r.
Return the number of points with integer coordinates that lie inside at least one circle. A point on a circle's boundary counts as inside.circles=[[1, 1, 1]] → 5
The circle centred at (1, 1) with radius 1 covers the centre and (0, 1), (2, 1), (1, 0), (1, 2): 5 points.
circles=[[1, 1, 1], [2, 1, 1]] → 8
The second circle adds (3, 1), (2, 0) and (2, 2); its other points are already counted. Total 8.
circles=[[5, 5, 2]] → 13
circles[i] has three numberscircles=[[1, 1, 1]]
5
Run checks the first 3 tests in your browser. Submit checks all 85 tests on the server, hidden ones included.