题解列表
编写题解2809: 菲波那契数列,python超简单
摘要:# 获取用户输入并转换为整数
k = int(input())
# 检查输入是否为1或2,因为斐波那契数列的前两项都是1
if k == 1 or k == 2:
……
Java 利用滑块的思想解决子矩阵问题
摘要:解题思路: 吃水不忘挖井人: 参考了大佬Python的思路: https://blog.csdn.net/m0_64126000/article/details/134337023 ……
蓝桥杯2023年第十四届省赛真题-整数删除
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>#include<vector>using namespace std;using ll = long ……
二维数组线性dp(C++)
摘要:#include using namespace std;
const int N = 110;
int f[N][N];
int a[N][N];
int main() {
int ……
信息学奥赛一本通T1255-迷宫问题
摘要:解题思路:使用宽度优先搜索解题注意事项:题目测试数据不好,一定要使用{ { -1, 0 }, { 0, -1 }, { 1, 0 }, { 0, 1 } };这个顺序不然会报答案错误.参考代码:imp……
动态规划求最长下降子序列和最长上升子序列
摘要:#include <bits/stdc++.h>
using namespace std;
const int N = 30000 + 10;
int a[N], f1[N], f2[N……
蓝桥杯【3150】一种做法~
摘要:## 3150的一种解法
**第一次写题解,不好勿喷**
### 直接上代码
```c++
#include
using namespace std;
int fin……