#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll ans[70];
int main(void)
{
ans[1]=3;
ans[2]=6;
ans[3]=6;
for(int i=4;i<=50;i++)
{
ans[i]=2*ans[i-2]+ans[i-1];
}
int n;
while(scanf("%d",&n)!=EOF)
{
printf("%lld\n",ans[n]);
}
return 0;
}
10-11
940
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交