LikeWater - 1728: 字符串的查找删除C++(明明是个简单题,但是不知道为啥我写了很久,不能怪我**,只能怪这个题目小绕) 摘要:####又是用的字符串对象,可以参照上一篇文章。 ```cpp #include #include #include #include using namespace std; int …… 题解列表 2023年03月11日 0 点赞 1 评论 273 浏览 评分:9.9
哥们 看看我为啥运行错误 凑啊 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s ="abcdefghijklmnopqrstuvwxyz";cha…… 题解列表 2023年03月11日 0 点赞 0 评论 342 浏览 评分:0.0
三次循环加剪枝 摘要:解题思路:从最大的数开始枚举,如果遇到小的满足条件的数直接跳出循环注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int n,m,s…… 题解列表 2023年03月11日 0 点赞 0 评论 450 浏览 评分:9.9
3074: 计算(calc) 摘要:解题思路:自己看着代码 把案例过一遍 代码就明白了 自己再多敲几遍注意事项:参考代码:#include<bits/stdc++.h>using namespace std;stack<int>num;…… 题解列表 2023年03月11日 0 点赞 0 评论 481 浏览 评分:0.0
杨辉三角—数组版本C++ 摘要:解题思路:构造一个二维矩阵存放杨辉三角的数值,然后直接查找输出指定位置的数据即可注意事项:但是使用int类型构造二维数组时,总是报错,提示数组越界,偶然间看到用long long 来代替,问题得到解决…… 题解列表 2023年03月10日 0 点赞 0 评论 286 浏览 评分:0.0
优质题解 LikeWater - 1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:####本题同样可以借助String字符串对象解题: ##string字符串对象 **————引入#include库即可定义string对象字符串:例如string str;下面介绍几个重要的对象…… 题解列表 2023年03月10日 0 点赞 2 评论 760 浏览 评分:9.9
最短路径—DIGSKRA算法 摘要:AC代码://重新编写最短路径算法 #include <iostream> #include <cstring> #define max_vex 1001 //最多结点个数---不要加分号 …… 题解列表 2023年03月10日 0 点赞 0 评论 297 浏览 评分:9.9
字符串匹配问题(strs) 摘要:解题思路:将字符用数字来代替注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//定义字符数组 和 数字数组 // 数字的优先级为0,1,2,3…… 题解列表 2023年03月10日 0 点赞 0 评论 446 浏览 评分:0.0
城市路(Dijkstra) 摘要:解题思路:看注释 参考代码: ```cpp #include // 引入所有标准库头文件 using namespace std; #define ll long long // 定义 lo…… 题解列表 2023年03月10日 0 点赞 0 评论 413 浏览 评分:9.9
求对角线格子问题_注释版 摘要:```cpp //#include #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #inclu…… 题解列表 2023年03月10日 0 点赞 0 评论 318 浏览 评分:0.0