시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 256 MB | 10 | 3 | 3 | 30.000% |
There are $N$ circles on a plane. The center of the $i$-th circle is $(x_i, y_i)$, and the radius of this circle is $\sqrt{x_i^2 + y_i^2}$.
Count the number of lattice points (points with integer coordinates) that are inside at least one of the circles. Note that the boundaries are considered to be inside.
$N$
$x_1$ $y_1$
$x_2$ $y_2$
$\vdots$
$x_N$ $y_N$
Print the answer in a single line.
2 0 1 0 -1
9
2 3 1 1 4
74
4 3 4 4 3 -2 -2 -3 2
146