2^n - 2*n

AtCoder
IDabc439_a
Time2000ms
Memory256MB
Difficulty
You are given an integer $N$. Compute and output the value of $2^N-2N$. ## Constraints * $N$ is an integer between $1$ and $11$, inclusive. ## Input The input is given from Standard Input in the following format: $N$ [samples]
Samples
Input #1
1
Output #1
0

The value of $N$ given in this input is $1$, so output the value of $2^1 - 2 \times 1$, which is $0$.
Input #2
2
Output #2
0

The value of $N$ given in this input is $2$, so output the value of $2^2 - 2 \times 2$, which is $0$.
Input #3
11
Output #3
2026

The value of $N$ given in this input is $11$, so output the value of $2^{11} - 2 \times 11$, which is $2026$.
API Response (JSON)
{
  "problem": {
    "name": "2^n - 2*n",
    "description": {
      "content": "You are given an integer $N$. Compute and output the value of $2^N-2N$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc439_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given an integer $N$. Compute and output the value of $2^N-2N$.\n\n## Constraints\n\n*   $N$ is an integer between $1$ and $11$, inclusive.\n\n## Input\n\nThe input is given from Standard Input in the...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments