杨辉三角—数组版本C++ 摘要:解题思路:构造一个二维矩阵存放杨辉三角的数值,然后直接查找输出指定位置的数据即可注意事项:但是使用int类型构造二维数组时,总是报错,提示数组越界,偶然间看到用long long 来代替,问题得到解决…… 题解列表 2023年03月10日 0 点赞 0 评论 328 浏览 评分:0.0
优质题解 LikeWater - 1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:####本题同样可以借助String字符串对象解题: ##string字符串对象 **————引入#include库即可定义string对象字符串:例如string str;下面介绍几个重要的对象…… 题解列表 2023年03月10日 0 点赞 2 评论 793 浏览 评分:9.9
最短路径—DIGSKRA算法 摘要:AC代码://重新编写最短路径算法 #include <iostream> #include <cstring> #define max_vex 1001 //最多结点个数---不要加分号 …… 题解列表 2023年03月10日 0 点赞 0 评论 349 浏览 评分:9.9
字符串匹配问题(strs) 摘要:解题思路:将字符用数字来代替注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//定义字符数组 和 数字数组 // 数字的优先级为0,1,2,3…… 题解列表 2023年03月10日 0 点赞 0 评论 484 浏览 评分:0.0
城市路(Dijkstra) 摘要:解题思路:看注释 参考代码: ```cpp #include // 引入所有标准库头文件 using namespace std; #define ll long long // 定义 lo…… 题解列表 2023年03月10日 0 点赞 0 评论 464 浏览 评分:9.9
求对角线格子问题_注释版 摘要:```cpp //#include #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #inclu…… 题解列表 2023年03月10日 0 点赞 0 评论 365 浏览 评分:0.0
LikeWater - 1969: 蓝桥杯算法提高VIP-字符串跳步C++(string字符串对象解题) 摘要:####个人感觉此题难度不大,可能是大家对与字符串对象的处理不太熟悉,下面我介绍一下。 ###string字符串对象 ***————引入#include库即可定义string对象字符串:例如s…… 题解列表 2023年03月10日 0 点赞 1 评论 457 浏览 评分:7.3
数字统计C++代码 摘要:#### 判断L-R中的每一个数,检验其中有几个2 ## 参考代码: ```cpp #include using namespace std; int main(){ int l,r,s…… 题解列表 2023年03月10日 0 点赞 0 评论 477 浏览 评分:9.9
如何计算副对角线 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { int a[3][3]; for(int i …… 题解列表 2023年03月10日 0 点赞 0 评论 672 浏览 评分:0.0
简单的冒泡排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void bubblesort(int *a,int n){ bool fla…… 题解列表 2023年03月10日 0 点赞 0 评论 320 浏览 评分:0.0