Priya is placing a circular fountain and needs to check whether a proposed bench location falls inside or on the edge of the fountain's boundary. Given a circle centered at (cx,cy) with radius r, and a point (px,py), print "INSIDE" if the point is inside or on the circle, else "OUTSIDE".
Input
Five integers cx cy r px py.
Output
"INSIDE" or "OUTSIDE".
Constraints
-10^4 ≤ values ≤ 10^4, r ≥ 0
Sample Input
0 0 5 3 4
Sample Output
INSIDE
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.