测试
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
|
// 测试
|
||||||
#include<bits/stdc++.h>
|
#include<bits/stdc++.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
#define int long long
|
#define int long long
|
||||||
const int N = 1e5+7;
|
#define endl '\n'
|
||||||
int dp[N];
|
|
||||||
signed main(){
|
signed main(){
|
||||||
dp[1] = dp[2] = 1;
|
ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
|
||||||
int n; cin >> n;
|
cout << "hello lanqiao" << endl;
|
||||||
for(int i = 3; i <= n; i++){
|
|
||||||
dp[i] = dp[i-1] + dp[i-2];
|
|
||||||
}
|
|
||||||
cout << dp[n] << endl;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user