This commit is contained in:
HuangHai
2025-08-30 18:35:01 +08:00
commit 1f397eca87
6258 changed files with 1487241 additions and 0 deletions

14
TangDou/ShuLun/SL10.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <bits/stdc++.h>
using namespace std;
const int N = 40;
int a[N] = {0, 1, 1};
int main() {
for (int i = 3; i < N; i++)
a[i] = a[i - 1] + a[i - 2];
for (int i = 1; i < N; i++)
printf("%d\n", a[i]);
return 0;
}