How to find an optimal solution to this with less time limit?

Is it possible to solve such a question with low time limit?
image
image

In the following question, the time limit is 3 seconds. But lets say the time limit was reduced, will there be a way to solve it then?
SUMTRIAN

Most accepted submissions don’t even get close to that time limit

1 Like