腌萝卜干
腌萝卜干
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
腌萝卜干的博客
全部文章
(共35篇)
题解 | #游游的二进制树#
分析 注意到数据范围不大 点的数量是, 边的数量也是 可以用解决 每个点作为根查找一下路径 发现满足条件累计答案 算法时间复杂度可以通过 代码实现 #include <bits/stdc++.h> #define x first #define y second using na...
2026-01-27
0
21
题解 | #交换到最大#
分析 非常好题目, 使我的大脑旋转 错误思路: 对于每个位置, 如果发现, 交换 这个是错误的, 因为交换后当前位置还是可以继续向前交换的 正确做法 对于每个位置, 因为只能与右侧的数字进行交换, 假设位置是, 那么交换的条件就是 也就是说需要找到一个最大的 因为每个位置的字符都是数字, 因此范围是...
2026-01-27
0
30
离线树状数组 + 离散化 | 音符
#include <bits/stdc++.h> #define x first #define y second using namespace std; typedef long long LL; typedef pair<int, int> PII; const...
2026-01-26
0
35
题解 | 邮递员送信
#include <bits/stdc++.h> #define x first #define y second using namespace std; typedef long long LL; typedef pair<int, int> PII; const...
2026-01-25
0
30
题解 | 【模板】排序
#include <bits/stdc++.h> #define x first #define y second using namespace std; typedef long long LL; typedef pair<int, int> PII; const...
2026-01-24
1
31
首页
上一页
1
2
3
4
下一页
末页