#include #include #include #include #include #include using namespace std; int main() { int n; cin >> n; vector a(n, 0); for (int i=0; i> a[i]; sort(a.begin(), a.end()); int _max = abs(a.front() - a.back()); int _min = INT_MAX; for (int i=1; i