文章列表

筛选

石头剪刀布的思考

摘要:#include<stdio.h>#include<math.h>int main(){    int N,NA,NB;    int a[100],b[100];    int A[100],B[1……

数组模拟阶乘计算

摘要:```cpp #include using namespace std; const int N = 1e4+10; int ans[N]; int main() { int n; c……

笔记(关于递归的)

摘要:题目:不用循环,递归升序输出1-100 参考代码: ```c #include int print(int a) { if(a……

(笔记)关于头文件

摘要: 直接看例子(楼梯有n阶台阶,一次可以上1阶、2阶或者3阶台阶,使用递归的方法计算出有多少种走完楼梯的方式): ```c //func.h #ifndef FUNC_FILE// ifndef……