描述 |
---|
Kim have n bottles. A bottle can be seen as a cylinder. One day his naughty little brother piles them up. Now he wants to know the surface area of these n bottles. In addition, he wondering what is the maximum surface area if he changes the order of the piled up bottles. (If the current surface area is already the maximum, he will not change anything.) |
输入 |
输出 |
For each case, print two number a b in one line, a is the current surface area and b is the maximum possible surface area. |
样例输入 |
1 |
样例输出 |
967.61 967.61 |
HINT |
(6*6π)+(6*6π-3*3π)+(10*10π-3*3π)+(10*10π)+(2*6π*1)+(2*3π*2)+(2*10π*1.5)=308π=967.61 |
来源 |
2017年第八届福建省大学生程序设计竞赛热身赛 |