Largest inscribed rectangle#6017

Largest inscribed rectangle

1 second
64 megabytes
Very easy

Output the maximum area of a rectangle that can be inscribed into a circle of radius . Rectangle's shorter side should not be longer than .

Input

First line contains the number of test cases (1 \le t \le 1000). Next lines each contain two integers and (1 \le r, b \le 10000).

Output

For each test case print on a separate line the maximum area of a rectangle whose shorter side does not exceed that can be inscribed into a circle of radius . Your answer should be rounded to three digits after the decimal point (see sample output).

Examples

Example 1

Loading
Loading