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
1
Expert's answer
2018-07-23T07:29:01-0400
Dear bindu, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment