标签:
4
5
#include<cstdio> #define ref(i,x,y) for(register int i=x;i<=y;i++) using namespace std; int f[51]; int n,m,t,ans; int main() { f[0]=1;f[1]=1; scanf("%d",&n); ref(i,2,n) f[i]=f[i-1]+f[i-2]; printf("%d\n",f[n]); return 0; }
标签:
原文地址:http://www.cnblogs.com/shenben/p/5564864.html