一个是升序排列,从后向前枚举;另一段降序排列,从前向后枚举却只能过75呢AC: #include <bits/stdc++.h> using namespace std; #define endl '\n' typedef long long ll; typedef pair<int, int> PII; const int N = 2e5 + 10; ll n, s, L; ll h[N], a[N], c[N]; ll mx; bool check(ll d) { for (int i = 0; i < n; i ++ ) c[i] = h[i...