#include #include #include using namespace std; int main(){ ios::sync_with_stdio(false); int n, input, d, min=10000000; cin >> n; int x[n]; int bDiffer=0; for(int i=0; i> x[i]; } sort(x,x+n); for(int i=0; id){ min=d; bDiffer=1; } } cout << min*bDiffer << "\n"; return 0; }