102210: [AtCoder]ABC221 A - Seismic magnitude scales

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

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:

$A$ $B$

Output

Print the answer as an integer.


Sample Input 1

6 4

Sample Output 1

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.


Sample Input 2

5 5

Sample Output 2

1

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

Input

题意翻译

输入大于 $2$ 小于 $10$ 的两个正整数 $a,b$ (保证 $a$ 不小于 $b$ ),输出 $32^{a-b}$ 的值。

Output

分数:100分

问题描述

地震的震级是对地震释放的能量的一种对数尺度。人们知道,每当震级增加1,能量就会增加大约32倍。
在这里,我们假设每当震级增加1,能量就会增加32倍。在这种情况下,震级为A的地震的能量是震级为B的地震的多少倍?

约束条件

  • 3≤B≤A≤9
  • A和B都是整数。

输入

输入数据从标准输入按以下格式给出:

$A$ $B$

输出

以整数形式打印答案。


样例输入1

6 4

样例输出1

1024

6比4大2,因此震级为6的地震的能量是震级为4的地震的32×32=1024倍。


样例输入2

5 5

样例输出2

1

震级相同的地震具有相同的能量。

加入题单

算法标签: