What is the problem with my search space?

At first, I was estimating the search space [0, sum*t].
For that, I was getting WA. Why is that wrong??

hello @BloodyOssan
search space should [maxInArray * t,sum * t]