atcoder#ABC191D. [ABC191D] Circle Lattice Points
[ABC191D] Circle Lattice Points
Score : points
Problem Statement
We have a circle of radius centered at . Find the number of grid points (points whose - and -coordinates are both integers) within or on the circle.
Constraints
- Each of , , and has at most four digits after the decimal point.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
0.2 0.8 1.1
3
The circle is shown below. The grid points within or on the circle are marked red.
100 100 1
5
, , and may not have decimal points. Note that we also count the grid points on the circle.
42782.4720 31949.0192 99999.99
31415920098