当你区间取反时,要按swap的方式写,不然就会像我一个蒟蒻一样犯一个没人犯的错误
错误写法:
t[id].mn=-t[id].mx; t[id].mx=-t[id].mn;
正确写法
int tmp=-t[id].mn; t[id].mn=-t[id].mx; t[id].mx=tmp;