#include using namespace std; int main(){ int n; cin >> n; int y[n]; for(int i=0;i> y[i]; } vector >dp(n,vector(n+1,1<<30)); for(int i=0;i<=10000;i++){ dp[0][i] = abs(y[0]-i); } for(int i=1;i