敌兵布阵(线段树) 传送门:https://vjudge.net/contest/66989#problem/A分析:求区间和,但是每个区间的值会有改变。因此想到了线段树。这是我写的第一到关于线段树的题。线段树讲解 我的ac代码:#include <iostream>#include <stdio.h>#define maxn 50005using namespace ... 数据结构-线段树 2024-01-03 62 点赞 0 评论 93 浏览