#abc221a. A - Seismic magnitude scales
A - Seismic magnitude scales
Score : points
问题陈述
地震的震级是一个对地震释放能量进行对数标度的衡量标准。已知每当震级增加 时,能量大约会增加到原来的 倍。
在本题中,我们假设每当震级增加 时,能量的确会精确地乘以 。在这种情况下,震级为 的地震的能量是震级为 地震能量的多少倍?
以上为通义千问 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 , the amount of energy gets multiplied by approximately .
Here, we assume that the amount of energy gets multiplied by exactly each time the magnitude increases by . In this case, how many times is the amount of energy of a magnitude earthquake as much as that of a magnitude earthquake?
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
6 4
Sample Output 1
1024
is greater than , so a magnitude earthquake has times as much energy as a magnitude 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