#C1537. Projected Storage Growth
Projected Storage Growth
Projected Storage Growth
Given an initial storage size (in terabytes), a doubling period defined by the number of days after which the storage doubles, and the number of days elapsed, your task is to compute the projected storage using exponential growth.
The storage is modeled by the formula:
$$ S = \text{initial_storage} \times 2^{\frac{\text{days_elapsed}}{\text{days_to_double}}} $$
Note that all input values are integers but computations should be performed in floating-point arithmetic. The output must be formatted to six decimal places.
inputFormat
The input consists of three space-separated integers: initial_storage, days_to_double, and days_elapsed.
outputFormat
Output the computed projected storage as a floating-point number formatted to six decimal places, followed by a newline.## sample
1000 30 0
1000.000000
</p>