蓝桥杯算法提高VIP-和最大子序列 摘要:#include<iostream>using namespace std;int ans=-1001;const int N=100000;int a[N];int main(){ int n…… 题解列表 2022年03月14日 0 点赞 0 评论 317 浏览 评分:0.0
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形 摘要:解题思路:参考 https://blog.csdn.net/zy98zy998/article/details/122293334注意事项:参考代码:#include<iostream> using…… 题解列表 2022年03月14日 0 点赞 1 评论 3169 浏览 评分:8.0
[递归]母牛的故事 摘要:#include<iostream>using namespace std;const int N=1000;int s[N],a[N],b[N],c[N],d[N];int main(){ s…… 题解列表 2022年03月14日 0 点赞 0 评论 362 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要://从中间开始循环就行!!#include<iostream>#include<string>using namespace std;string a;int n,i=0;void digui(int…… 题解列表 2022年03月14日 0 点赞 0 评论 347 浏览 评分:0.0
编写题解 2056: 汉诺塔 利用栈和递归解决 摘要:#include <iostream>#include <stack>using namespace std;stack<int> s[3];void move(int x, int y,int n)…… 题解列表 2022年03月14日 0 点赞 0 评论 466 浏览 评分:0.0
模拟,一道水题 摘要:```cpp #include using namespace std; int main(){ string s1, s2; cin >> s1 >> s2; int le…… 题解列表 2022年03月14日 0 点赞 1 评论 537 浏览 评分:9.9
双指针o(n)!! 摘要:```cpp #include using namespace std; int main(){ string s1; getline(cin, s1); int max_…… 题解列表 2022年03月14日 0 点赞 0 评论 602 浏览 评分:9.9
优质题解 1207: 字符排列问题 C++ STL容器 深度优先搜索DFS 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; map<char,int>m; //对排列中的字符进行查重 …… 题解列表 2022年03月14日 0 点赞 0 评论 810 浏览 评分:9.9
1514: 蓝桥杯算法提高VIP-夺宝奇兵 摘要:解题思路:这道题有点奇怪,有些条件没有说清楚,这里题人不能往右走,切只能往上走或者走左上角,既然这样就直接dp注意事项:当i==j的时候不能往上走,如果没有限制的话会超时参考代码:#include<b…… 题解列表 2022年03月14日 0 点赞 0 评论 687 浏览 评分:0.0
防御导弹 序列型动态规划,最长下降子序列,方法都会,注意细节 摘要: ```cpp #include #include #include using namespace std; int n; int dp[1005]; int a[1005]; i…… 题解列表 2022年03月14日 0 点赞 0 评论 685 浏览 评分:9.9