G - Banning Balconing |
The person jumps with an initial horizontal speed V (the initial vertical speed is supposed to be 0). The gravity is supposed to be 9.81 m/s2.
You have to determine if the person would fall on the floor, or 50 cm away from an edge of the pool (at any side), or into the pool.
The input starts with a natural number indicating the number of test cases.
Each test case is contained in a line with 4 integer numbers separated by blank spaces: L (length of the pool, in millimeters), D (horizontal distance, in millimeters), H (height, in millimeters) and V (horizontal speed, in millimeters/second). These numbers will not be negative.
For each test case, you have to output a line with:
EDGE
: if the person falls 0.5
meters or less from an edge of the pool.FLOOR
: if the person falls on the
floor (but more than 0.5 meters away from the edges).POOL
: if the person falls into
the pool (but more than 0.5 meters away for the edges).5
7000 3000 5000 1500
5500 2000 8000 4000
6250 1000 3000 750
3000 300 10000 600
3000 500 10000 600
FLOOR
POOL
EDGE
POOL
EDGE