Free Kick
题号:NC237192
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

PaiGuDragon is playing in a football match and is ready to take a free kick.

The goal range is the line segment from point A(0,0) to point B(L, 0)

The position of the free kick of the PaiGuDragon is P(x, y).

It is guaranteed that y,L are positive integers.

Take football as a particle, then the angle between PA and PB is goal angle.

Now, the opponent of PaiGuDragon plans to stand in a line segment CD as a human wall.

The length of the human wall is and the distance from P to the straight line CD must be greater than or equal to

The line segment CD is not necessarily parallel to the x-axis but it's required that C,D must be above the x-axis.

Fortunately, PaiGuDragon can't kick elevator-ball and banana-ball. It can only kick along the direction of a certain ray and can't bypass the human wall.

Please minimize the goal angle that PaiGuDragon can get.

输入描述:

The input consists of multiple test cases. The first line contains a single integer --- the number of test cases. Description of the test cases follows.

Each test case contains 5 integers - )

输出描述:

keep 4 decimal places and output the angle of the smallest goal in the form of angle system.
示例1

输入

复制
1
6 4 4 2 2

输出

复制
18.4349