题解列表

筛选

教学楼的楼梯 数组做法(C语言代码)

摘要:解题思路:从第一层阶梯开始,我们试着列一下不同走法:2层: 1,1;     2;   共2种;3层: 1,1,1;     1,2;      2,1;    共3种;4层: 1,1,1,1;   ……

P1014 (C++代码)数据有错

摘要:                         代码是正确的,区间 Dp。#include <bits/stdc++.h> constexpr auto Inf = 0X3F3F3F3F;

You are my brother (C语言代码)

摘要:解题思路:贴个代码 不想写注释了注意事项:参考代码:#include<stdio.h>typedef struct node{ int a; int b;} L;L A[1005];int main(……