树状数组之单点修改并求全局第K小
摘要:
树状数组模板如下 可实现建树、查询、倍增求第K小 class Fenw { public: int n; vector<int> c; Fenw(int size) { n = size; c.resize(n+1, 0); } void add(int i, int x) { while (i < 阅读全文
posted @ 2025-07-16 16:06
TaopiTTT
阅读(36)
评论(0)
推荐(0)
浙公网安备 33010602011771号