巅峰对决 #include<bits/stdc++.h> #define ios ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) #define ll long long using namespace std; int MAX, MIN, y, Max[400005], Min[400005]; void build(int p, int l, int r) {//建立线段树,p为下标 if (l == r) { cin >> y; Max[p] = Min[p] = y; ...