Not able to understand piyush and magical park problem?

Can you please explain the problem statement?

Hi sharad
See this link to understand the question through sample input :

Hope it helps
Mark resolved if satisfied :slight_smile:

not able to understand the explanation

it is asking for the maximum strength that can be gathered in a new line, not for the rwmaing strength after exiting the park

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.