'commit'
This commit is contained in:
15
TangDou/LianXiTi50/1.cpp
Normal file
15
TangDou/LianXiTi50/1.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include<bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
typedef long long LL;
|
||||
const int N = 20;
|
||||
LL a[N];
|
||||
|
||||
int main() {
|
||||
a[1] = 1;
|
||||
a[2] = 1;
|
||||
for (int i = 3; i <= N; i++) a[i] = a[i - 1] + a[i - 2];
|
||||
for (int i = 1; i <= N; i++) printf("%lld ", a[i]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user