第一种能过 #include <bits/stdc++.h> using namespace std; #define int long long #define ios ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr) typedef long long ll; typedef pair<int, int>PII; int n; int a[100005]; int pre[100005];//pre[i]表示1-i个数中乘2后变化值最小的数 int suf[100005];//suf...