当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
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
时间上限 | 内存上限 |
1000 | 65536 |