Tropical Cyclone FANI
Time Limit: 1 sec
The Problem
Bangladesh Meteorological Department (BMD) draw a area in map can be affected by FANI. The area like a parabola because FANI can be change the moving direction. After moving some distance FANI will be destroy (have no power). The area look like this
In this picture (h, k) is the current position (vertex) of FANI and a the distance between current position and destroy point and (x, y) is the center point of a city.
In this problem, your job is to determine the city is affected by FANI or not.
The Input
The first line of input contains a number T < 10000, where T denotes the number of test cases. The first line of each case contains three positive integers h, k, and a (0 <= h, k, a <= 1000), and second line contains two integers x, and y (0 <= x, y <= 1000).
The Output
For each case of input, there will be one line of output “Yes” or “No”. If the city affected by FANI then print “Yes” otherwise “No”.
Sample Input
2
10 20 4
20 10
50 40 50
100 200
Sample Output
Yes
No
Inter University Programming Contest - Summer 2019 [BGC Trust University Bangladesh]
Problem Setter: Shahin ShamS