📅  最后修改于: 2022-03-11 14:44:55.319000             🧑  作者: Mango
int query(int l, int r)
{
int LB = l/Blk; //Blk = block size
int RB = r/Blk;
int minimum = INT_MAX;
if(LB == RB) {
for(int i=l; i<=r; i++) {
minimum = min(minimum, arr[i]);
}
}
else {
for(int i=l; i