#include #define rep(i,n) for(int i=0;i=0;i--) #define FOR(i,m,n) for(int i=m;i inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } //const ll INF = 1LL << 60; const int INF = 1001001001; int main(void){ int n; cin >> n; int a[n]; rep(i,n) cin >> a[i]; int mi=INF,ma=0;; rep(i,n-1) chmin(mi,a[i+1]-a[i]); cout << mi << endl <