mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
10 lines
174 B
C++
10 lines
174 B
C++
|
#include <math.h>
|
||
|
#include <stdio.h>
|
||
|
int main(void)
|
||
|
{
|
||
|
int n;
|
||
|
while (scanf("%d", &n) != EOF)
|
||
|
printf("%.0f\n", 3 * pow(2, n - 1) - 2);
|
||
|
return 0;
|
||
|
}
|