摘要:
题目链接: https://www.acwing.com/problem/content/1272/ 题解: 线段树模板题,单点求和、区间查询都可 AC代码: #include <cstdio> #include <iostream> #include <algorithm> #include <c 阅读全文
摘要:
题目链接: https://www.acwing.com/problem/content/description/1266/ 题解: 模板题,记query()、add()、lowbit()函数即可 AC代码: #include <iostream> #include <cstdio> #includ 阅读全文