Evaporation and Height
A vessel is described with its center at the point (0, 0, 0). This vessel extends infinitely in height and is situated above the half-space of the xOy plane. The radius of the vessel's cross-section on the xOy plane is defined by one of the following equations:
The vessel's surface is formed by rotating the specified curve around the OZ axis.
Liquid is poured into the vessel up to a height H. It then begins to evaporate according to the law v = αS, where the evaporation rate is directly proportional to the area of the liquid's exposed surface (the surface area in contact with air) at any given time. Determine the time required for all the liquid to evaporate from the vessel.
Input
The input starts with a single letter "A", "B", or "C", indicating the type of vessel being considered.
For case "A", the next line provides 3 real numbers a, b, c (0 < a, c ≤ 10^2, 0 ≤ b ≤ 10^2).
For case "B", the next line also provides 3 real numbers a, b, c (0 < a, c ≤ 10^2, 0 ≤ b ≤ 10^2).
For case "C", the next line contains 2 real numbers a, b (0 < a, b ≤ 10^2).
The 3rd line provides two real numbers: H (0 < H < 10^4) and α (0 < α ≤ 1).
Output
Output a single number T — the time required for all the liquid to evaporate, with an absolute or relative error of 10^{-6}.