标签:style blog io color sp for on div log
#include<stdio.h> int main() { int n; __int64 a[100]; while(scanf("%d",&n)!=EOF) { a[0]=0;a[1]=3;a[2]=8; for(int i=3;i<=40;++i) a[i]=2*(a[i-1]+a[i-2]); printf("%I64d\n",a[n]); } return 0; }
标签:style blog io color sp for on div log
原文地址:http://www.cnblogs.com/lonelysky/p/4127481.html