上一页 1 2 3 4 5 6 7 8 9 ··· 70 下一页
摘要: 数学(杂) P10724 [GESP202406 七级] 区间乘积 贪心 P15802 [GESP202603 七级] 拆分 LIS问题 P14078 [GESP202509 七级] 金币收集 DAG上的DP P10287 [GESP样题 七级] 最长不下降子序列 图的性质 P13017 [GESP 阅读全文
posted @ 2026-09-08 21:24 quanjun 阅读(110) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P6453 解题思路:完全参考自 Marser 大佬的博客。 一开始我暴力合并 \(f_{u, i}\),时间复杂度 \(O(n^3)\)(但是常数应该会很大),竟然卡过了,卡过了的代码如下。 代码1(卡过的): #incl 阅读全文
posted @ 2026-09-07 16:21 quanjun 阅读(13) 评论(0) 推荐(0)
摘要: CSP-J(入门级)初赛 CSP-J 2019 第一轮 CSP-J 2020 第一轮 CSP-J 2021 第一轮 CSP-J 2022 第一轮 CSP-J 2023 第一轮 CSP-J 2024 第一轮 CSP-J 2025 第一轮 CSP-S(提高级)初赛 CSP-S 2019 第一轮 CSP- 阅读全文
posted @ 2026-09-07 08:19 quanjun 阅读(131) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P16902 解题思路:完全来自 大佬的博客, 有一丢丢 笛卡尔树 建树的思想在, 很神奇的一种双指针优化分治时间复杂度的思想。 示例程序: #include <bits/stdc++.h> using namespace 阅读全文
posted @ 2026-09-06 17:31 quanjun 阅读(12) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P11261 解题思路:完全来自 OrinLoong 大佬的博客。 示例程序: #include <bits/stdc++.h> using namespace std; using ll = long long; cons 阅读全文
posted @ 2026-09-06 15:22 quanjun 阅读(18) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P6383 解题思路:完全来自 冰冷的心 大佬的博客 示例程序(\(O(n^3)\),TLE): #include <bits/stdc++.h> using namespace std; using ll = long l 阅读全文
posted @ 2026-09-06 10:18 quanjun 阅读(21) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P4755 解题思路:参考自 Find_NICK大佬的博客。 示例程序: #include <bits/stdc++.h> using namespace std; using ll = long long; const i 阅读全文
posted @ 2026-09-05 16:15 quanjun 阅读(16) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P16762 解题思路完全来自 GX6zm大佬的博客。 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 5; int T, 阅读全文
posted @ 2026-09-05 08:32 quanjun 阅读(21) 评论(0) 推荐(0)
摘要: 双倍经验:abc420_f. kirinuki(求面积 \(\le K\) 的全 '.' 子矩阵个数) 题目链接:https://www.luogu.com.cn/problem/P13647 题目大意:求面积 \(\ge K\) 的全 \(0\) 子矩阵个数。 解题思路参考自 P2441M 大佬的 阅读全文
posted @ 2026-09-04 20:32 quanjun 阅读(15) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P13037 解题思路完全来自 qiuqiu_luogu大佬的博客 。虽然大佬的博客中并没有使用笛卡尔树,但是基于大佬的想法建树然后解决这题也很方便。 示例程序: #include <bits/stdc++.h> using 阅读全文
posted @ 2026-09-04 10:38 quanjun 阅读(18) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 70 下一页