题目链接:https://codeforces.com/contest/1899/problem/G 离线每次查询。对于每一个查询的x,在搜索时将小区间合并到大区间里,然后直接二分查询出来 structtdata{ intl,r,i; }; constintnn=1e5+10;...