/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
整数 N が与えられるので、 2^N-2N の値を計算して出力してください。
制約
- N は 1 以上 11 以下の整数
入力
入力は以下の形式で標準入力から与えられる。
N
出力
答えを出力せよ。
入力例 1
1
出力例 1
0
この入力で与えられる N の値は 1 なので、 2^1 - 2 \times 1 の値である 0 を出力してください。
入力例 2
2
出力例 2
0
この入力で与えられる N の値は 2 なので、 2^2 - 2 \times 2 の値である 0 を出力してください。
入力例 3
11
出力例 3
2026
この入力で与えられる N の値は 11 なので、 2^{11} - 2 \times 11 の値である 2026 を出力してください。
Score : 100 points
Problem Statement
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
Output
Output the answer.
Sample Input 1
1
Sample 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.
Sample Input 2
2
Sample 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.
Sample Input 3
11
Sample 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.