腌萝卜干
腌萝卜干
全部文章
分类
归档
标签
去牛客网
登录
/
注册
腌萝卜干的博客
全部文章
(共24篇)
题解 | #交换到最大#
分析 非常好题目, 使我的大脑旋转 错误思路: 对于每个位置, 如果发现, 交换 这个是错误的, 因为交换后当前位置还是可以继续向前交换的 正确做法 对于每个位置, 因为只能与右侧的数字进行交换, 假设位置是, 那么交换的条件就是 也就是说需要找到一个最大的 因为每个位置的字符都是数字, 因此范围是...
2026-01-27
0
21
离线树状数组 + 离散化 | 音符
#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
29
题解 | 邮递员送信
#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
25
题解 | 【模板】排序
#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
25
首页
上一页
1
2
3
下一页
末页