悼念512汶川大地震遇难同胞——一定要记住我爱你 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7700 Accepted Submission(s): 4735 Problem Desc
#include<stdio.h> int a[31]={0,1,3,5}; int main() { int s; scanf("%d",&s); while(s--) { int n,i; scanf("%d",&n); for(i=4;i<=n;i++) a[i]=a[i-1]+a[i-2]*2; printf("%d\n",