Octave

AtCoder
IDabc440_a
Time2000ms
Memory256MB
Difficulty
The frequency of a sound doubles for every increase of $1$ octave in pitch. If the pitch of a sound with frequency $X$ hertz is raised by $Y$ octaves, what will its frequency be in hertz? ## Constraints * $1 \leq X \leq 444$ * $1 \leq Y \leq 3$ * All input values are integers. ## Input The input is given from Standard Input in the following format: $X$ $Y$ [samples]
Samples
Input #1
110 2
Output #1
440

For a sound $2$ octaves above a sound with frequency $110$ hertz, its frequency is $110 \times 2 \times 2 = 440$ hertz.
Input #2
233 3
Output #2
1864

For a sound $3$ octaves above a sound with frequency $233$ hertz, its frequency is $233 \times 2 \times 2 \times 2 = 1864$ hertz.
Input #3
432 1
Output #3
864

For a sound $1$ octave above a sound with frequency $432$ hertz, its frequency is $432 \times 2 = 864$ hertz.
API Response (JSON)
{
  "problem": {
    "name": "Octave",
    "description": {
      "content": "The frequency of a sound doubles for every increase of $1$ octave in pitch. If the pitch of a sound with frequency $X$ hertz is raised by $Y$ octaves, what will its frequency be in hertz?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc440_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "The frequency of a sound doubles for every increase of $1$ octave in pitch.\nIf the pitch of a sound with frequency $X$ hertz is raised by $Y$ octaves, what will its frequency be in hertz?\n\n## Constrai...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments