#B2618. Cube from Spherical Clay
Cube from Spherical Clay
Cube from Spherical Clay
Small A has two spherical pieces of clay with radii 4 and 10 respectively. He mixes them together and forms a cube such that the volume of the cube equals the sum of the volumes of the two spheres.
The volume of a sphere is given by \(V=\frac{4}{3}\pi r^3\). Using \(\pi=3.141593\), the total volume is:
\(V_{total}=\frac{4}{3}\pi(4^3+10^3)\).
The side length \(s\) of the cube satisfies \(s^3=V_{total}\), so \(s=\sqrt[3]{V_{total}}\). If the result is not an integer, discard the fractional part.
inputFormat
This problem does not require any input.
outputFormat
Output a single integer representing the side length of the cube.
sample
dummy
16