#C6359. Population Growth Simulation
Population Growth Simulation
Population Growth Simulation
You are given two integers: the initial population p and the number of hours h. Every hour, the population doubles. Your task is to compute the population after h hours.
The population can be computed using the formula: $$ P = p \times 2^h $$.
Constraints:
- 1 \(\leq\) p \(\leq\) 106
- 0 \(\leq\) h \(\leq\) 100
inputFormat
The input consists of a single line containing two space-separated integers: p and h. Here, p is the initial population (1 (\leq) p (\leq) 106) and h is the number of hours (0 (\leq) h (\leq) 100). The input is to be read from standard input (stdin).
outputFormat
Output a single integer representing the population after h hours, computed as $$ p \times 2^h $$. The output should be printed to standard output (stdout).## sample
1 0
1