Educational Codeforces Round 66 (Rated for Div. 2) E. Minimal Segment Cover
链接https://codeforces.com/contest/1175/problem/E题解用fi,kf_{i,k}fi,k表示从坐标为iii的点(借助线段)往左跳2k2^k2k次能到达的坐标最小的位置先把线段按照左端点排序,用一个指针搞一搞,处理出fi,0f_{i,0}fi,0然后倍增算出fi,1...20f_{i,1...20}fi,1...20查询(x,y)(x,y)(x,y)就是二分