No.89 Let's Go Big with Donuts, One After Another!
タグ : / 解いたユーザー数 585
作問者 :
Problem Statement
The animation club of a certain high school was making a pledge over donuts in preparation for the school festival.
Since they are high school girls, they are concerned about calories. However, the donuts they bought had no calorie information listed.
Viewed from above, the donuts they bought look like a perfect pair of concentric circles, and cutting through the ring of the donut gives a perfect circle. (In other words, the donut is a torus.)
So they decided to find the calories using the fact that the donut has \(C\)kcal per \(1cm^{3}\).
Input
\(C\)
\(R_{in}\ R_{out}\)
\(C\) is the calories per \(1cm^3\) of the donut. (C is an integer, \(0 \leq C \leq 10\) )
\(R_{in}\) is the radius (cm) of the inner circle when the donut is viewed from directly above. (\(R_{in}\) is a positive integer, \(1 \leq R_{in} \leq 20\))
\(R_{out}\) is the radius (cm) of the outer circle when the donut is viewed from directly above. (\(R_{out}\) is a positive integer, \(R_{in} \leq R_{out} \leq 20\))
Output
Output the calories of the donut they bought.
An error of up to \(10^{-5}\) is allowed.
Do not forget the newline at the end.
Sample
Sample 1
Input
0 5 10
Output
0.0000000000
A magical donut that won't make you gain weight no matter how much you eat.
Sample 2
Input
10 1 20
Output
187053.6774116461
The diet starts tomorrow.
Hint
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。