// // Created by good boy on 2024/1/14. // #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e5+10; ll a[N]; ll n,k,res; // 找到第一个大于k的位置r int bsearch(int l,int r){ while(l<r){ int mid = (l+r)>>1; if(a[r]-a[l-1]>=k)r = mid; ...