[solved] – Question 79275
John was given a task to make a rectangular box during his innovation competition. He was given with the P cm of wire and S cm2 of special paper. He had to use all the wire (for the 12 edges) and paper (for the 6 sides) to make the box. So what will be the maximum volume of that box?
Input Format
The first line contains n, the number of test cases.
Each test case contains two integers A and B in a line.
Constraints
Resultant to be of two decimal places accuracy.
Output Format
Single lined output for the maximum volume of the made box with 2 two decimal places.
Sample Input 0
2
20 14
20 16
Sample Output 0
3.0
4.15
Expert Answer
OR

