Point Inside Circle
Time Limit: 1 sec
The Problem
Given the co-ordinate of the center of a circle and it's radius and a co-ordinate of a point, you have to determine whether a point is inside that circle or not. You should assume that if a point on the perimeter of the circle, then it is considered to be inside of that circle.
[Note: Try to avoid using double or float point calculation]
The Input
The first line contains a positive integer T ( 1<=T<=10000), denoting the number of test case. The next T lines will contain 5 integers (cx, cy) co-ordinate of the center of the circle, r redious of the circle and (x, y) co-ordinate of the point. All numbers are positive integers and not greater than 100000.
The Output
For each case, print "yes" if the point is inside the circle otherwise print "no".
Sample Input
3
1 2 3 2 1
4 4 5 8 8
100 89 10000 10 20
Sample Output
yes
no
yes
Problem Setter: Shahin ShamS