# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
598191 | Ozy | Bridges (APIO19_bridges) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
.lower_bound(arr[a]);
orden.erase(it);
arr[a].w = b;
orden.insert(arr[a]);
}
else {
if (m == 0) {cout << 1 << endl; continue;}
//query
rep(i,1,n) uf[i] = {i,1};
auto it = orden.begin();
while ((*it).w <= b) {
x = sube((*it).u);
y = sube((*it).v);
if (x != y) une(x,y);
it++;
}
a = sube(a);
cout << uf[a].tam << endl;
}
}
}