ll@t;rep(t){ll@l,@r,@a,@b;wt(max(a*r,a*l)+b);}