利用预排序的方法,可以通过80% #include<vector> #include<iostream> #include<algorithm> using namespace std; int main() { int num = 0; cin >> num; if (num == 0) return 0; vector<vector<int>> points(num, vector<int> (2, -1)); for (int i = 0; i < num; ...