2009: 第一个带类的C++程序 摘要:解题思路:本题输入的不是3个整数而是字符串,所以难点在于如何高效的把字符串转成数字。我的想法是把输入的读入一个char数组,遍历此数组,遇到'-'就切换,遇到数字就加到另一个存放日期数…… 题解列表 2022年03月01日 0 点赞 0 评论 429 浏览 评分:9.9
太简单了,我都不想解释 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; while(cin>>a…… 题解列表 2022年03月01日 0 点赞 0 评论 292 浏览 评分: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 评论 296 浏览 评分:0.0
金陵十三钗(超简单DFS+剪枝) 摘要:解题思路:记录一个最大值,如果当前搜索过程中的最大值 + 剩下层数 * maxv <= res 则不可能更新最大值 , 直接return 故只需要加一句剪枝代码: if (s + (n…… 题解列表 2022年03月01日 0 点赞 0 评论 434 浏览 评分: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 评论 158 浏览 评分: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 评论 210 浏览 评分: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 评论 301 浏览 评分:0.0
1458: 蓝桥杯2013年第四届真题-错误票据 摘要: #include #include #include #include using namespace std; const int …… 题解列表 2022年03月01日 0 点赞 0 评论 228 浏览 评分:0.0
蓝桥杯算法提高VIP-学霸的迷宫 摘要:解题思路:跟着BFS的模板走就可以了,唯一要注意的是要用输出字典序,把方向的数组dir按照的一定的顺序排列即可注意事项:参考代码:#include<bits/stdc++.h> using name…… 题解列表 2022年03月01日 0 点赞 0 评论 724 浏览 评分: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 评论 311 浏览 评分:0.0