#include using namespace std; int main() { int n; cin >> n; int a[n],dif[n-1],min; for(int i=0;i> a[i]; sort(a,a+n); for(int i=0;i