Getting wrong output

I had tried to change my approach in order to make the code effective but still the cases fails here in the coding blocks compiler.
What can be the correct solution for this problem?

hi @mvermav19,
try adding new line after every test case

yeah, it worked
Thanks a lot!

1 Like

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.