Max6700 @ 2023-05-23 22:09:20
#include<bits/stdc++.h>
using namespace std;
int a[1000000];
int n;
int main(){
cin>>n;
a[0]=a[1]=1;
for(int i=2;i<=n;i++)
a[i]=a[i-1]+a[i-2];
cout<<a[n];
return 0;
}
(简洁明了的50分代码
by GWBailang @ 2023-05-24 19:39:05
@Max6700 呵