Seismic magnitude scales

AtCoder
IDabc221_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
6 4
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.
Input #2
5 5
Output #2
1

Earthquakes with the same magnitude have the same amount of energy.
API Response (JSON)
{
  "problem": {
    "name": "Seismic magnitude scales",
    "description": {
      "content": "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 appro",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc221_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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 appro...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments