#abc221a. A - Seismic magnitude scales

A - Seismic magnitude scales

Score : 100100 points

问题陈述

地震的震级是一个对地震释放能量进行对数标度的衡量标准。已知每当震级增加 11 时,能量大约会增加到原来的 3232 倍。

在本题中,我们假设每当震级增加 11 时,能量的确会精确地乘以 3232。在这种情况下,震级为 AA 的地震的能量是震级为 BB 地震能量的多少倍?

以上为通义千问 qwen-max 翻译,仅供参考。

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 11, the amount of energy gets multiplied by approximately 3232.
Here, we assume that the amount of energy gets multiplied by exactly 3232 each time the magnitude increases by 11. In this case, how many times is the amount of energy of a magnitude AA earthquake as much as that of a magnitude BB earthquake?

Constraints

  • 3BA93\leq B\leq A\leq 9
  • AA and BB are integers.

Input

Input is given from Standard Input in the following format:

AA BB

Output

Print the answer as an integer.

Sample Input 1

6 4

Sample Output 1

1024

66 is 22 greater than 44, so a magnitude 66 earthquake has 32×32=102432\times 32=1024 times as much energy as a magnitude 44 earthquake has.

Sample Input 2

5 5

Sample Output 2

1

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

update @ 2024/3/10 09:44:34