编写题解2809: 菲波那契数列,python超简单 摘要:# 获取用户输入并转换为整数 k = int(input()) # 检查输入是否为1或2,因为斐波那契数列的前两项都是1 if k == 1 or k == 2: …… 题解列表 2024年03月20日 1 点赞 0 评论 312 浏览 评分:9.9
Java 利用滑块的思想解决子矩阵问题 摘要:解题思路: 吃水不忘挖井人: 参考了大佬Python的思路: https://blog.csdn.net/m0_64126000/article/details/134337023 …… 题解列表 2024年03月20日 0 点赞 0 评论 699 浏览 评分:9.9
十->二进制转换 摘要: 有点复杂哈,主要是格式问题 #include int main() { int n; while((scanf("%d",&n))!=E…… 题解列表 2024年03月20日 0 点赞 0 评论 215 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-整数删除 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>#include<vector>using namespace std;using ll = long …… 题解列表 2024年03月20日 2 点赞 0 评论 1115 浏览 评分:9.9
二维数组线性dp(C++) 摘要:#include using namespace std; const int N = 110; int f[N][N]; int a[N][N]; int main() { int …… 题解列表 2024年03月20日 0 点赞 0 评论 150 浏览 评分:9.9
矩阵最大值c++ 摘要:```cpp #include using namespace std; int main() { int m, n; int a[101][101]; whi…… 题解列表 2024年03月20日 0 点赞 0 评论 611 浏览 评分:9.9
信息学奥赛一本通T1255-迷宫问题 摘要:解题思路:使用宽度优先搜索解题注意事项:题目测试数据不好,一定要使用{ { -1, 0 }, { 0, -1 }, { 1, 0 }, { 0, 1 } };这个顺序不然会报答案错误.参考代码:imp…… 题解列表 2024年03月21日 0 点赞 0 评论 224 浏览 评分:9.9
动态规划求最长下降子序列和最长上升子序列 摘要:#include <bits/stdc++.h> using namespace std; const int N = 30000 + 10; int a[N], f1[N], f2[N…… 题解列表 2024年03月21日 0 点赞 0 评论 252 浏览 评分:9.9
蓝桥杯【3150】一种做法~ 摘要:## 3150的一种解法 **第一次写题解,不好勿喷** ### 直接上代码 ```c++ #include using namespace std; int fin…… 题解列表 2024年03月21日 0 点赞 0 评论 245 浏览 评分:9.9
有规律的数列求和c语言解法利用函数构造 摘要:解题思路:构造两个函数分别求出分子和分母注意事项:参考代码:#include<stdio.h>double fun(int m){ int f[10000]; f[0]=2; f[1]=3; for(…… 题解列表 2024年03月21日 0 点赞 0 评论 203 浏览 评分:9.9