#include #include #include using namespace std; int main(){ int n; cin >> n; int x[n]; int d,d_max=INT_MAX; cin >> x[0]; for(int i=1;i> x[i]; if(x[i]!=x[i-1])d = x[i]-x[i-1]; if(d<0)d*=-1; d_max = min(d,d_max); } cout << d_max <