思路是排序后使用滑动窗口 #include<vector> #include<iostream> #include<algorithm> #include<numeric> #include<queue> using namespace std; vector<vector<int>> re; int main() { int n,k; cin >> n;cin >> k; for (int i = 0; i < n; i++) { int x, y; vector...