caek @ 2019-02-16 19:57:05
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,a[10000];
cin>>n;
a[1]=1;
a[2]=2;
for (int i=3; i<=n; i++)
{
a[i]=a[i-2]+a[i-1];
}
cout<<a[n];
return 0;
}
by caek @ 2019-02-16 20:04:41
好吧
by caek @ 2019-02-16 20:08:08
题解我看不懂哎
by Bean233 @ 2019-03-01 12:39:36
@caek 努力看吧……题解有用的……