#include <bits/stdc++.h>
using namespace std;
int ans[50]={0,1,1};
int Floor(int n){
return ans[n]?ans[n]:ans[n]=Floor(n-1)+Floor(n-2);
}
int main(){
int n;cin>>n;
Floor(40);
while(n--){
int t;cin>>t;
cout<<ans[t]<<endl;
}
return 0;
}
HDU 2041 超级楼梯
最新推荐文章于 2024-03-25 22:14:12 发布