AdvancedRating 1500
Grid Points in a Circle
Count the points (x, y) with integer coordinates and x² + y² ≤ r².
Input
One integer r (0 ≤ r ≤ 10⁶).
Output
One integer.
Sample 1
Input
0
Output
1
Sample 2
Input
1
Output
5
Output appears hereOne integer r (0 ≤ r ≤ 10⁶).
One integer.
0
1
1
5
Output appears here