hhb0422 @ 2021-12-26 13:54:46
#include<bits/stdc++.h>
using namespace std;
long long a[100000];
int main()
{
int n,k;
cin>>n;
a[0]=1;
a[1]=2;
for(int i=2;i<=n;i++)
{
a[i]=a[i-1]+a[i-2];
}
cout<<a[n-1];
return 0;
}
by MujicaSaki @ 2021-12-26 13:57:29
要高精度