Point and the circle
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Determine whether the point A with coordinates (x, y) belongs to the part of the plane limited by a circle of radius R centered at O(x[0]
, y[0]
).
Input
In the first line the coordinates of point A(x, y) are given. Second line contains three integers: the circle radius R (0 < R ≤ 200) and the coordinates of its center O(x[0]
, y[0]
). All coordinates are integers and does not exceed 200 by absolute value.
Output
Print YES if the point belongs to the given part of the plane, NO if not, and ON BORDER if we are "lucky" and the point belongs to the curve describing a circle.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 45%