太简单了,我都不想解释 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; while(cin>>a…… 题解列表 2022年03月01日 0 点赞 0 评论 360 浏览 评分:4.0
[STL训练]A+B 不用 stringstream也可以做 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string fun(std::string s){ while(1){ …… 题解列表 2022年03月01日 0 点赞 0 评论 376 浏览 评分:0.0
金陵十三钗(超简单DFS+剪枝) 摘要:解题思路:记录一个最大值,如果当前搜索过程中的最大值 + 剩下层数 * maxv <= res 则不可能更新最大值 , 直接return 故只需要加一句剪枝代码: if (s + (n…… 题解列表 2022年03月01日 0 点赞 0 评论 531 浏览 评分:9.9
蓝桥杯算法训练VIP-数的统计 摘要:#include<iostream>#include<algorithm>using namespace std;const int N=1005;int arr1[N];int arr2[N];in…… 题解列表 2022年03月01日 0 点赞 0 评论 234 浏览 评分:0.0
动态规划-最长上升子序列模型,注意前一次和后一次的美味度可相等! 摘要:#include<iostream>using namespace std;const int N=1005;int a[N],dp[N];int main(){ int n; cin>>…… 题解列表 2022年03月01日 0 点赞 0 评论 300 浏览 评分:0.0
[STL训练]Who's in the Middle 摘要:```cpp #include using namespace std; #include #include bool cmp(int a,int b){ return a < b;…… 题解列表 2022年03月01日 0 点赞 0 评论 395 浏览 评分:0.0
1458: 蓝桥杯2013年第四届真题-错误票据 摘要: #include #include #include #include using namespace std; const int …… 题解列表 2022年03月01日 0 点赞 0 评论 274 浏览 评分:0.0
蓝桥杯算法提高VIP-学霸的迷宫 摘要:解题思路:跟着BFS的模板走就可以了,唯一要注意的是要用输出字典序,把方向的数组dir按照的一定的顺序排列即可注意事项:参考代码:#include<bits/stdc++.h> using name…… 题解列表 2022年03月01日 0 点赞 0 评论 829 浏览 评分:9.9
Hifipsysta-1924: 蓝桥杯算法提高VIP-01背包 摘要:```cpp #include using namespace std; int weight[5001]; int value[5001]; int dp[5001]; int…… 题解列表 2022年03月01日 0 点赞 0 评论 407 浏览 评分:0.0
Hifipsysta-2132: 信息学奥赛一本通T1268-完全背包问题 摘要:```cpp #include #include using namespace std; int weight[201]; int value[201]; int dp[201]…… 题解列表 2022年03月01日 0 点赞 0 评论 362 浏览 评分:0.0