#include #include #include int cmp(const void *a,const void *b){ if(*(int*)a>*(int*)b){return 1;} else if(*(int*)a<*(int*)b){return -1;} else {return 0;} } int main(void){ int n,x[100003]; int min=199191919; scanf("%d",&n); for(int i=0;i=abs(x[i]-x[i-1])){min=abs(x[i]-x[i-1]);} } printf("%d",min); }