摘要: 树状数组基础 区间修改,单点查询:P3368 【模板】树状数组 2 题目描述 如题,已知一个数列,你需要进行下面两种操作: 1 x y k:将区间 $[x, y]$ 内每个数加上 $k$。 2 x:输出第 $x$ 个数的和。 数据范围 对于 $100%$ 的数据:$1 \leq N, M\le 50 阅读全文
posted @ 2023-01-11 16:31 HelloHeBin 阅读(33) 评论(0) 推荐(0)
摘要: 基础数据结构&算法 OJ:http://xx.ncyzedu.cn:8007/ STL:https://www.cnblogs.com/hellohebin/p/15677412.html 集合:set,map P761 【入门】明明的随机数 P763 【入门】等差对 P760 [NOIP2007 阅读全文
posted @ 2023-01-11 09:43 HelloHeBin 阅读(101) 评论(0) 推荐(0)