Count Lattice Points Inside a Circle

You are given circles [x, y, r], each centered at integer coordinates (x, y) with radius r. Count the distinct integer-coordinate lattice points that lie inside or on the circumference of at least one circle. A point covered by multiple circles is counted once. The membership test for a circle is (px-x)^2 + (py-y)^2 <= r^2.

Examples
Input: [[0,0,1]]
Output: 5
Hints

Count Lattice Points Inside a Circle

You are given circles `[x, y, r]`, each centered at integer coordinates `(x, y)` with radius `r`. Count the distinct integer-coordinate lattice points that lie inside or on the circumference of at least one circle. A point covered by multiple circles is counted once. The membership test for a circle is `(px-x)^2 + (py-y)^2 <= r^2`.