favorite We need a little bit of your help to keep things running, click on this banner to learn more

PP2. Week 3: March 15 - 21

Point within a circle

Check, if the point is inside the circle.


The first line contains the coordinates of the circle center and its radius. The second line contains the coordinates of point A. All numbers are integers not exceeding 10000 by absolute value.


Print the "YES", if the point A belongs to a circle (with boundaries), and "NO" otherwise.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 1 2
1 3
Output example #1