会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
DE_aemmprty
博客园
首页
管理
2023年10月12日
树状数组模板
摘要: namespace BIT { int tr[/*数据范围 qwq*/], N; void init(int n) { N = n; for (int i = 1; i <= n; i ++) tr[i] = 0;} void update(int x, int y) { for (; x <= N
阅读全文
posted @ 2023-10-12 09:54 DE_aemmprty
阅读(48)
评论(3)
推荐(0)
公告