Point and the circle
Determine whether a point belongs to A, given the coordinates (x; y), part of the plane by a circle of radius R centered at O (x0; y0).
Specifications
Input
The first line defines a space coordinates of the point A (x; y). In the second line are given a space three integers: first the circle radius R (0 < R ≤ 200) and then the coordinates of its center O (x0; y0). All coordinates are integers whose values are in absolute value does not exceed 200.
Output
In a single line display a message YES - if the point belongs to this part of the plane, NO - if not own, and ON BORDER - if we "lucky" and a point belongs to the curve describing a circle.
Problem information
Time Limit: 1 secondsMemory Limit: 64 MB
Balls for the passed test: 4.28571
Complexity: 9% 307/336
Source: SFE-2011 v. 1
Example
Example input2 3 5 1 2 |
Example outputYES |
| ← LOGO | Problems | y = sin x → |
