强健面包

文章
4
资源
0
加入时间
3年1月12天

敌兵布阵(线段树)

传送门:https://vjudge.net/contest/66989#problem/A分析:求区间和,但是每个区间的值会有改变。因此想到了线段树。这是我写的第一到关于线段树的题。线段树讲解 我的ac代码:#include <iostream>#include <stdio.h>#define maxn 50005using namespace ...