摘要: 题目链接:https://www.luogu.com.cn/problem/P5903 解题思路来自 xht大佬的博客 示例程序: #include <bits/stdc++.h> using namespace std; #define ui unsigned int ui s; inline u 阅读全文
posted @ 2025-07-15 16:17 quanjun 阅读(6) 评论(0) 推荐(0)
摘要: 题目链接:https://www.luogu.com.cn/problem/P4211 主要是 树上差分。 思路来自 紫钦大佬的博客 示例程序: #include <bits/stdc++.h> using namespace std; const int maxn = 5e4 + 5, mod = 阅读全文
posted @ 2025-07-15 14:15 quanjun 阅读(44) 评论(0) 推荐(0)