标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5910 Accepted Submission(s): 4646
3 2 8 12
3 171 2731
#include<iostream> int num[32]; using namespace std; int main() { int n; int m; int i,j,k; int sum; num[1]=1; num[2]=3; for(i=3;i<=30;i++) num[i]=num[i-1]+2*num[i-2]; cin>>n; while(n--) { cin>>m; cout<<num[m]<<endl; } return 0; }
1504071639-hd-Tiling_easy version
标签:
原文地址:http://blog.csdn.net/wangluoershixiong/article/details/44922313