#include <bits/stdc++.h> using namespace std; int main() { int n, ma = INT_MIN, mi = INT_MAX; vector<int> v; cin >> n; while (n--) { int a; cin >> a; (ma < a) && (ma = a); (mi > a) && (mi = a); v.e...