标签:
#include<stdio.h> int main() { int n; __int64 f[60]; f[1]=3; f[2]=6; f[3]=6; for(int i=4;i<=50;i++) { f[i]=f[i-1]+f[i-2]*2; } while(scanf("%d",&n)!=EOF) { printf("%I64d\n",f[n]); } return 0; }
标签:
原文地址:http://www.cnblogs.com/Annetree/p/5215632.html