#include #include using namespace std; int main(int argc, char* argv[]) { int N,i; cin>>N; vector A(N); int minD=1000000; for (i=0;i>A[i]; } for (i=0;id){ minD=d; } } int maxD=A[N-1]-A[0]; if (maxD<0){ maxD=-maxD; } cout<