会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
劝君
渭城朝雨浥轻尘,客舍青青柳色新。劝君更尽一杯酒,西出阳关无故人。
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
60
下一页
2026年3月29日
ABC451G. Minimum XOR Walk 题解 线性基 + 01 trie
摘要: 题目链接:https://atcoder.jp/contests/abc451/tasks/abc451_g 首先,你需要解决 这道 “线性基” 的题:P14994 异或最短路和 其次,你需要会使用 01trie 实现以下功能: 插入一个数字; 判断入门有多少个数字 \(\oplus x \lt K
阅读全文
posted @ 2026-03-29 17:00 quanjun
阅读(4)
评论(0)
推荐(0)
2026年3月23日
洛谷P4719 【模板】动态 DP 题解 动态DP(DDP)模板题
摘要: 题目链接:https://www.luogu.com.cn/problem/P4719 解题思路:完全来自 oi.wiki 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5, inf = 1e9;
阅读全文
posted @ 2026-03-23 01:06 quanjun
阅读(3)
评论(0)
推荐(0)
2026年3月19日
CF932F. Escape Through Leaf 题解 李超线段树合并 + DP
摘要: 题目链接:https://codeforces.com/problemset/problem/932/F 前置知识: 李超线段树 + 李超线段树合并,见 oi.wiki 本题解题思路: 在掌握前置知识后,其实你会发现这是一道模板题。但是也可以参考一下官方的题解。 示例程序: #include <bi
阅读全文
posted @ 2026-03-19 20:40 quanjun
阅读(3)
评论(0)
推荐(0)
P5494 【模板】线段树分裂
摘要: 题目链接:https://www.luogu.com.cn/problem/P5494 解题思路:来自 oi.wiki 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 2e5 + 5, maxm = maxn
阅读全文
posted @ 2026-03-19 19:11 quanjun
阅读(2)
评论(0)
推荐(0)
洛谷P4556 【模板】线段树合并 / [Vani 有约会] 雨天的尾巴 线段树合并模板题
摘要: 题目链接:https://www.luogu.com.cn/problem/P4556 解题思路:来自 oi.wiki 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5, M = 1e5; int
阅读全文
posted @ 2026-03-19 14:45 quanjun
阅读(2)
评论(0)
推荐(0)
2026年3月18日
洛谷P4097 【模板】李超线段树 / [HEOI2013] Segment 题解 李超线段树 模板题
摘要: 题目链接:https://www.luogu.com.cn/problem/P4097 解题思路:完全来自 oi.wiki 双倍经验:P4254 [JSOI2008] Blue Mary 开公司(更简单,因为每次更新都是整个区间) 示例程序: #include <bits/stdc++.h> usi
阅读全文
posted @ 2026-03-18 22:38 quanjun
阅读(2)
评论(0)
推荐(0)
2026年3月17日
P11225 [COTS 2019] 疏散 Sklonište 题解 二分答案 + Hall定理 + 最短路 + 高维前缀和
摘要: 题目链接:https://www.luogu.com.cn/problem/P11225 前置知识: Hall 婚姻定理:可以问一下豆包(我是问豆包理解的) 高维前缀和,可以通过以下两道例题理解: arc100_c. Or Plus Max CF1208F. Bits And Pieces 然后就可
阅读全文
posted @ 2026-03-17 16:44 quanjun
阅读(2)
评论(0)
推荐(0)
CF1208F. Bits And Pieces 题解 高维前缀和
摘要: 题目链接:https://codeforces.com/problemset/problem/1208/F 其实是 高维后缀和。 解题思路参考自 https://www.cnblogs.com/heyuhhh/p/11585358.html 示例程序: #include <bits/stdc++.h
阅读全文
posted @ 2026-03-17 16:43 quanjun
阅读(4)
评论(0)
推荐(0)
arc100_c. Or Plus Max 题解 高维前缀和
摘要: 题目链接:https://atcoder.jp/contests/arc100/tasks/arc100_c 解题思路:来自 vectorwyx 大佬的博客 示例程序: #include <bits/stdc++.h> using namespace std; int n; pair<int, in
阅读全文
posted @ 2026-03-17 16:42 quanjun
阅读(5)
评论(0)
推荐(0)
2026年3月6日
洛谷P4008 [NOI2003] 文本编辑器 题解 块状链表
摘要: 题目链接:https://www.luogu.com.cn/problem/P4008 思路和题解参考自:https://www.luogu.com.cn/article/jsj8kne5 Find 函数很好用!赞! 区别: 我是自己手写的双向链表; 由于我的操作不会出现大于 blo(blo 是设定
阅读全文
posted @ 2026-03-06 11:31 quanjun
阅读(7)
评论(0)
推荐(0)
1
2
3
4
5
···
60
下一页
公告