两个吃奶一个添下面视频_人妻第一页香蕉网_欧美xxxx少妇_妺妺窝人体色www婷婷

1111 問題 D: Cylinder

時間限制: 1s 內(nèi)存限制: 128MB 提交: 3708 解決: 1596
題目描述

Using a sheet of paper and scissors, you can cut out two faces to form a cylinder in the following way:


Cut the paper horizontally (parallel to the shorter side) to get two rectangular parts.

From the first part, cut out a circle of maximum radius. The circle will form the bottom of the cylinder.

Roll the second part up in such a way that it has a perimeter of equal length with the circle's circumference, and attach one end of the roll to the circle. Note that the roll may have some overlapping parts in order to get the required length of the perimeter.

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
提示
零基礎(chǔ)同學可以先學習視頻課程,包含C/C++、Python、百練、藍橋杯輔導、算法數(shù)據(jù)結(jié)構(gòu)等課程,提供視頻講解以及配套習題,還有老師答疑,點擊這里了解課程詳情

比賽公告

由于洛谷中創(chuàng)建公開賽較難,又要自己出題,出數(shù)據(jù)+驗題,而在C語言網(wǎng)中可以自由舉辦非惡意的比賽,所以123覺定舉辦一場公開的提高題大賽。一共4題。為了防止被噴毒瘤,所以時間較長。這樣也可以減少題目問題,不必實時在線。 【聲明】這時以自我為中心常見的比賽,與任何學校無關(guān)。也可以自我訓練一下。誠心膜拜用時短的大佬。