#AT1390. [ABC174B] Distance
[ABC174B] Distance
Score : points
Problem Statement
We have points in the two-dimensional plane. The coordinates of the -th point are .
Among them, we are looking for the points such that the distance from the origin is at most . How many such points are there?
We remind you that the distance between the origin and the point can be represented as .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print an integer representing the number of points such that the distance from the origin is at most .
The distance between the origin and each of the given points is as follows:
Thus, we have three points such that the distance from the origin is at most .
Multiple points may exist at the same coordinates.