题解列表
图的遍历-BFS广度优先搜索(C++)
摘要:解题思路:#include<iostream>
using namespace std;
#define MAX_VERTEX_NUM 50 // 定义最大结点数;
#define MAXQSI……
蓝桥杯2022年第十三届省赛真题-数位排序
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i,n,m,t,s; cin>>n>>m……
二分查找求方案数 (最大值)
摘要:二分查找 巧克力划分的方案数 (最大值)
```c++
#include
using namespace std;
const int N = 1e5+10;
typedef long ……
双向循环链表:C++面向对象
摘要:
###### 参考代码
```cpp
#include
using namespace std;
struct node
{
int data;
node* ……
图的遍历-DFS深度优先搜索(C++)
摘要:#include<iostream>
using namespace std;
#define MAX_VERTEX_NUM 20 // 定义最大结点数
int graph[MAX_VERTEX……
2798: 整数序列的元素最大跨度值
摘要:注意事项: 给max和min赋值时注意,一定要让这两个值有改动,否则记录的不是输入的值,max够小,min够大参考代码:#include<iostream>
using namespace s……
暴力解(抛弃大脑,回归原始)
摘要:解题思路:没学几天算法 不要喷,就是排序之后 放到队列里,然后扫过去注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct Poin……