摘要:
题目链接:https://www.luogu.com.cn/problem/P14989 解题思路完全来自 elainya_stars 大佬的博客 示例程序: #include <bits/stdc++.h> using namespace std; using ll = long long; co 阅读全文
posted @ 2026-09-03 17:09
quanjun
阅读(18)
评论(0)
推荐(0)
摘要:
题目链接:https://www.luogu.com.cn/problem/P7972 解题思路:完全来自 rui_er 大佬的博客 示例程序: #include <bits/stdc++.h> using namespace std; using ll = long long; const ll 阅读全文
posted @ 2026-09-03 16:12
quanjun
阅读(22)
评论(0)
推荐(0)
摘要:
题目链接:https://www.luogu.com.cn/problem/P6503 题目大意 给出一个长度为 \(n\) 的序列 \(a_i\),求出下列式子的值: \[\sum_{i=1}^{n} \sum_{j=i}^{n} (\max_{i\le k\le j} a_k-\min_{i\l 阅读全文
posted @ 2026-09-03 10:39
quanjun
阅读(36)
评论(0)
推荐(0)
摘要:
双倍经验:洛谷P1377 [TJOI2011] 树的序(按照同样的方式建完笛卡尔树之后,维护一个小顶堆从根节点开始BFS) 题目链接:https://www.luogu.com.cn/problem/P2171 题目要求我们按照输入顺序依次向一棵二叉查找树(BST)中插入泡泡,并最终输出这棵树的后序 阅读全文
posted @ 2026-09-03 10:11
quanjun
阅读(29)
评论(0)
推荐(0)
浙公网安备 33010602011771号