#include #include #include using namespace std; int main(){ ios::sync_with_stdio(false); int n, input, min=pow(10, 6); vector x; int bDiffer=0; cin >> n; for(int i=0; i> input; x.push_back(input); } for(int i=0; i fabs(x[i]-x[j])){ min = fabs(x[i]-x[j]); bDiffer=1; } } } cout << min*bDiffer << "\n"; return 0; }