시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 4 | 4 | 4 | 100.000% |
Using a sheet of paper and scissors, you can cut out two faces to form a cylinder in the following way:
Given the dimensions of the sheet of paper, can you calculate the biggest possible volume of a cylinder which can be constructed using the procedure described above?
The input consists of several test cases. Each test case consists of two numbers w and h (1 ≤ w ≤ h ≤ 100), which indicate the width and height of the sheet of paper.
The last test case is followed by a line containing two zeros.
For each test case, print one line with the biggest possible volume of the cylinder. Round this number to 3 places after the decimal point.
10 10 10 50 10 30 0 0
54.247 785.398 412.095