potentiometers专题

UVALive - 2191 Potentiometers

题意:S操作将x改为y,M操作求[x,y]的和 思路:稍加改动一下树状数组就行了,当然线段树也可以 #include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int MAXN = 400005;int n,t[MAXN];int lowbi