题解列表
使用stl的双向链表+数组
摘要:```cpp
#include
using namespace std;
#define pr pair
#define ll long long
const int N = 5e5 + 5……
奶奶个蛋,比赛的时候写的一样,但是肯定不对
摘要:#include
using namespace std;
#define int long long
int n;
const int N=1e5+1;
struct fly
{
i……
题目 1635: 蓝桥杯算法训练VIP-整数平均值
摘要:解题思路:看了很多人的代码,发现用函数和指针来解决问题的不多,写了一下代码,抛砖引玉吧#include <iostream>using namespace std;double arrayAvg(in……
线性dp(感觉就是个桶)
摘要:#include
using namespace std;
#define int long long
const int N=1e5+1;
int a[N],b[N];
int f[N];……
前驱 后驱数组 + 优先队列
摘要:# 思路
## 如何动态维护这个序列
对于这题我们需要维护一个前驱数组和后驱数组,当选中下标i作为被删除点时候进行如下操作

摘要:# ***解题思路***
公式显示有问题,直接放图
-----------……
蓝桥杯2023年第十四届省赛真题-岛屿个数(搜索)
摘要:# ***解题思路***
从$$(0,0)$$开始染色,把遇到的0全部染成2,这样没染色的部分,一定为环,接着再搜索环的个数即可。
注意:开始染色的时候,可能有斜角,得使用八向搜索;搜索环的时……