摘要: 8 1 2 5 7 3 4 6 8 复杂度 o(n^2) 优化; o(nlogn) 方法一 二分+贪心 #include<bits/stdc++.h> using namespace std; const int maxn=1e5+10; const int INF=0x3f3f3f3f; int 阅读全文