#F. A - Seismic magnitude scales

    传统题 1000ms 256MiB

A - Seismic magnitude scales

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Seismic magnitude scales

Score : $100$ points

Problem Statement

The magnitude of an earthquake is a logarithmic scale of the energy released by the earthquake. It is known that each time the magnitude increases by $1$, the amount of energy gets multiplied by approximately $32$.
Here, we assume that the amount of energy gets multiplied by exactly $32$ each time the magnitude increases by $1$. In this case, how many times is the amount of energy of a magnitude $A$ earthquake as much as that of a magnitude $B$ earthquake?

Constraints

  • $3\leq B\leq A\leq 9$
  • $A$ and $B$ are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the answer as an integer.


6 4
1024

$6$ is $2$ greater than $4$, so a magnitude $6$ earthquake has $32\times 32=1024$ times as much energy as a magnitude $4$ earthquake has.


5 5
1

Earthquakes with the same magnitude have the same amount of energy.

2025寒假ATC码力训练营第二次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-19 13:00
结束于
2025-1-19 14:30
持续时间
1.5 小时
主持人
参赛人数
4