测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A10170. Pyramids

编程题 普及/提高-

题目描述

IT City administration has no rest because of the fame of the Pyramids in Egypt. There is a project of construction of pyramid complex near the city in the place called Emerald Walley. The distinction of the complex is that its pyramids will be not only quadrangular as in Egypt but also triangular and pentagonal. Of course the amount of the city budget funds for the construction depends on the pyramids' volume. Your task is to calculate the volume of the pilot project consisting of three pyramids — one triangular, one quadrangular and one pentagonal.

The first pyramid has equilateral triangle as its base, and all 6 edges of the pyramid have equal length. The second pyramid has a square as its base and all 8 edges of the pyramid have equal length. The third pyramid has a regular pentagon as its base and all 10 edges of the pyramid have equal length.

![](/uploads/acgo/image/6406e671b5404204_b669dbf116c9.jpeg)

输入格式

The only line of the input contains three integers $l_{3},l_{4},l_{5}$ ( $1<=l_{3},l_{4},l_{5}<=1000$ ) — the edge lengths of triangular, quadrangular and pentagonal pyramids correspondingly.

输出格式

Output one number — the total volume of the pyramids. Absolute or relative error should not be greater than $10^{-9}$ .

输入输出样例

输入 #1
2 5 3
输出 #1
38.546168065709
上一题 去做题 下一题