include long long hmax(long long m,long long n){if(m>=n) return m;else return n;}int main(){long long t,n,k,i,j,max;long long a[200020],sum[200020],maxn[200020];scanf("%lld",&t);while(t--){max=-1000000000000;a[0]=0;sum[0]=0;scanf("%lld %lld",&n,&k);for(i=1;i<=n;i++)scanf("%lld",&am...