优质题解 LikeWater - 1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:####本题同样可以借助String字符串对象解题: ##string字符串对象 **————引入#include库即可定义string对象字符串:例如string str;下面介绍几个重要的对象…… 题解列表 2023年03月10日 0 点赞 2 评论 654 浏览 评分:9.9
最短路径—DIGSKRA算法 摘要:AC代码://重新编写最短路径算法 #include <iostream> #include <cstring> #define max_vex 1001 //最多结点个数---不要加分号 …… 题解列表 2023年03月10日 0 点赞 0 评论 196 浏览 评分:9.9
字符串匹配问题(strs) 摘要:解题思路:将字符用数字来代替注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//定义字符数组 和 数字数组 // 数字的优先级为0,1,2,3…… 题解列表 2023年03月10日 0 点赞 0 评论 326 浏览 评分:0.0
城市路(Dijkstra) 摘要:解题思路:看注释 参考代码: ```cpp #include // 引入所有标准库头文件 using namespace std; #define ll long long // 定义 lo…… 题解列表 2023年03月10日 0 点赞 0 评论 304 浏览 评分:9.9
求对角线格子问题_注释版 摘要:```cpp //#include #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #inclu…… 题解列表 2023年03月10日 0 点赞 0 评论 231 浏览 评分:0.0
LikeWater - 1969: 蓝桥杯算法提高VIP-字符串跳步C++(string字符串对象解题) 摘要:####个人感觉此题难度不大,可能是大家对与字符串对象的处理不太熟悉,下面我介绍一下。 ###string字符串对象 ***————引入#include库即可定义string对象字符串:例如s…… 题解列表 2023年03月10日 0 点赞 1 评论 365 浏览 评分:7.3
数字统计C++代码 摘要:#### 判断L-R中的每一个数,检验其中有几个2 ## 参考代码: ```cpp #include using namespace std; int main(){ int l,r,s…… 题解列表 2023年03月10日 0 点赞 0 评论 351 浏览 评分:9.9
如何计算副对角线 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int a[3][3]; for(int i …… 题解列表 2023年03月10日 0 点赞 0 评论 546 浏览 评分:0.0
简单的冒泡排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void bubblesort(int *a,int n){ bool fla…… 题解列表 2023年03月10日 0 点赞 0 评论 203 浏览 评分:0.0
单个字符拼接输出 摘要:解题思路:注意事项:不要用cin<< 因为根据题目条件,字符串中可能含有空格参考代码://#include <bits/stdc++.h>#define _CRT_SECURE_NO_WARNINGS…… 题解列表 2023年03月10日 0 点赞 0 评论 166 浏览 评分:0.0