#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; vector ys(n); for(Int i=0;i>ys[i]; sort(ys.begin(),ys.end()); const Int INF = 1e15; vector dp(n,INF); dp[1]=ys[1]-ys[0]; dp[2]=ys[2]-ys[0]; for(Int i=1;i