Problem L
Lots of Liquid
You work at a warehouse that sells chemical products, where somebody just placed an order for all the Boron Acetate Phosphoric Carbonate (BAPC) that you have in store. This liquid is stored in many separate lots, in cube-shaped containers, but your client requires the order to be delivered in a single cube-shaped container that fits all the BAPC liquid perfectly. What should be the size of this container?
Input
The input consists of:
-
One line with an integer $n$ ($1\leq n\leq 10^5$), the number of cube-shaped containers that you have in store.
-
One line with $n$ floating-point numbers $c$ ($1\leq c\leq 10^9$), the length of one of the sides for each of these containers.
Output
Output the length of one of the sides of the cube-shaped container that will contain all the BAPC liquid.
Your answer should have an absolute or relative error of at most $10^{-6}$.
| Sample Input 1 | Sample Output 1 |
|---|---|
3 21 28 35 |
42 |
| Sample Input 2 | Sample Output 2 |
|---|---|
3 22.10 2022 1337 |
2200.6131345362505 |
| Sample Input 3 | Sample Output 3 |
|---|---|
3 1.41421356 2.718281828 3.1415926535 |
3.777901284526486 |
