bfs+dfs(判断是否是关键点) 摘要:解题思路: 1.用bfs求出图的start 和 target 最短路径,因为要求关键点就是求start 到 target 路径上的关键点 2.用dfs判断路径上的点是否…… 题解列表 2022年03月04日 0 点赞 0 评论 188 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ long int a,tem…… 题解列表 2022年03月04日 0 点赞 0 评论 215 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串跳步-题解(C++代码) 摘要:#include <iostream> using namespace std; int main() { string temp; cin >> temp; int start, s…… 题解列表 2022年03月04日 0 点赞 0 评论 205 浏览 评分:0.0
1035: [编程入门]自定义函数之字符类型统计 摘要:解题思路:和 1012: [编程入门]字符串分类统计 一模一样,区别只是本题要写子函数。1012题链接:https://blog.dotcpp.com/a/84267注意事项:maxSize一开始设…… 题解列表 2022年03月04日 0 点赞 0 评论 396 浏览 评分:9.5
利息计算--简单 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip> // 小数using namespace std;int main(){ double n…… 题解列表 2022年03月04日 0 点赞 0 评论 208 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最优包含 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;int dp[1005…… 题解列表 2022年03月04日 0 点赞 0 评论 1041 浏览 评分:8.7
Hifipsysta-2046-输出全排列(C++代码)DFS方法 摘要:```cpp #include #include using namespace std; int seq[11]; bool vis[11]; void DFS(vector v…… 题解列表 2022年03月04日 0 点赞 0 评论 313 浏览 评分:9.9
Hifipsysta-1913-蓝桥杯算法提高VIP-排列数(C++代码)基于STL的实现 摘要:```cpp #include #include #include using namespace std; int main(){ int n; cin>…… 题解列表 2022年03月04日 0 点赞 0 评论 331 浏览 评分:0.0
Hifipsysta-1218-排列(C++代码)DFS 摘要:```cpp =```cpp #include #include using namespace std; const int maxLen = 11; int seq[maxLen]…… 题解列表 2022年03月04日 0 点赞 0 评论 303 浏览 评分:0.0
C++代码,01背包做法 摘要:解题思路:注意事项:参考代码:这题原本是一道基本的 01 背包 , 动态规划 。只需将价格与重要度提前算好 , 再套模板即可 。代码如下 :#include<bits/stdc++.h>//万能头文件…… 题解列表 2022年03月03日 0 点赞 0 评论 808 浏览 评分:9.9