#P4160. [SCOI2009] 生日快乐
[SCOI2009] 生日快乐
Description
windy's birthday has arrived. To celebrate, his friends bought a rectangular cake with side lengths and .
Now, including windy, there are people to share this big cake, and each person must receive the same area.
windy makes the cuts. Each cut must be parallel to one of the cake's sides (either side), and it must split the piece being cut into two pieces.
Thus, to obtain pieces, windy must make cuts.
To make each piece look nice, we want to minimize the maximum ratio of the long side to the short side among the pieces.
Can you help windy find this ratio?
Input Format
One line with three integers , , .
Output Format
One line with a floating-point number, rounded to 6 decimal places.
5 5 5
1.800000
Hint
For of the testdata, it holds that , .
Translated by ChatGPT 5
京公网安备 11011102002149号