#include #include #include using namespace std; int main(){ int n; cin>>n; vector a(n); for(int i=0;i>a[i]; sort(a.begin(),a.end()); int d=1001001001; for(int i=1;i