ll@N,@X,@(A,B)[N];rep(1,X+1)wtSp(sum[i,0,N](max(B[i]-abs(x-A[i]),0)));